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