Exemple #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            pesageHeaderReport rpt = new pesageHeaderReport();

            rpt.Site = this.Site;
            return(rpt);
        }
Exemple #2
0
        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;
            }
        }