public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { pesageLineReport rpt = new pesageLineReport(); rpt.Site = this.Site; return(rpt); }
private void EtatConsommation_Load(object sender, EventArgs e) { switch (operation) { case 0: ReportsCR.pesageHeaderReport objRptHeader = new ReportsCR.pesageHeaderReport(); objRptHeader.SetDataSource(ds); crystalReportViewer1.ReportSource = objRptHeader; crystalReportViewer1.Refresh(); break; case 1: ReportsCR.pesageLineReport objRptLine = new ReportsCR.pesageLineReport(); objRptLine.SetDataSource(ds); crystalReportViewer1.ReportSource = objRptLine; crystalReportViewer1.Refresh(); break; default: break; } }