public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { rpNhapKho rpt = new rpNhapKho(); rpt.Site = this.Site; return(rpt); }
private void frm_rpNhapKho_Load(object sender, EventArgs e) { rpNhapKho rp = new rpNhapKho(); crystalReportViewer1.ReportSource = rp; rp.SetDatabaseLogon("sa", "sa2012", "DESKTOP-HHM5LAU", "QL_NHAHANG"); crystalReportViewer1.Refresh(); crystalReportViewer1.DisplayToolbar = false; crystalReportViewer1.DisplayStatusBar = false; }