Beispiel #1
0
 private void DanhsachKH_Load(object sender, EventArgs e)
 {
     Hamchung hc = new Hamchung();
     SqlConnection cnn = new SqlConnection(hc.sqlCon);
     cnn.Open();
     SqlDataAdapter da = new SqlDataAdapter("select * from Khachhang", cnn);
     DataTable dt = new DataTable();
     da.Fill(dt);
     ReportKhachhang kh = new  ReportKhachhang();
     kh.SetDataSource(dt);
     rptvKhachhang.ReportSource = kh;
     cnn.Close();
 }
Beispiel #2
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     ReportKhachhang rpt = new ReportKhachhang();
     rpt.Site = this.Site;
     return rpt;
 }