private void DanhsachNXB_Load(object sender, EventArgs e) { Hamchung hc = new Hamchung(); SqlConnection cnn = new SqlConnection(hc.sqlCon); cnn.Open(); SqlDataAdapter da = new SqlDataAdapter("select * from NXB", cnn); DataTable dt = new DataTable(); da.Fill(dt); reportNXB nxb = new reportNXB(); nxb.SetDataSource(dt); rptvNXB.ReportSource = nxb; cnn.Close(); }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { reportNXB rpt = new reportNXB(); rpt.Site = this.Site; return rpt; }