public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { Reporthd rpt = new Reporthd(); rpt.Site = this.Site; return(rpt); }
private void RPHoaDon_Load(object sender, EventArgs e) { Reporthd rpt = new Reporthd(); crystalReportViewer1.ReportSource = rpt; rpt.SetDatabaseLogon("sa", "sql2012", "A201-PC08\\SQL2012", "QLNhaHang"); rpt.SetParameterValue("LocMaHD", ma); crystalReportViewer1.Refresh(); crystalReportViewer1.DisplayToolbar = false; crystalReportViewer1.DisplayStatusBar = false; }