public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { rpInHoaDon rpt = new rpInHoaDon(); rpt.Site = this.Site; return(rpt); }
private void btnIn_Click(object sender, EventArgs e) { DataTable dt = cthdbll.CTHD_select_theoban_ckt(maban); rpInHoaDon rp = new rpInHoaDon(); rp.SetDataSource(dt); Formrpinhoadon frmInhd = new Formrpinhoadon(); frmInhd.crystalReportViewer1.ReportSource = rp; frmInhd.ShowDialog(); }