public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { rpkhachhang rpt = new rpkhachhang(); rpt.Site = this.Site; return(rpt); }
private void Khachhangrp_Load(object sender, EventArgs e) { DataTable dt = new DataTable(); Database ds = new Database(); dt = ds.Docbang("Select *From KHACHHANG"); rpkhachhang rp = new rpkhachhang(); rp.SetDataSource(dt); crystalReportViewer1.ReportSource = rp; }