コード例 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrystalReport10 rpt = new CrystalReport10();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
 public void Printer(DataTable data)
 {
     if (data.TableName == "Client")
     {
         CrystalReport4 cr = new CrystalReport4();
         crystalReportViewer1.ReportSource = cr;
         cr.SetDataSource(data);
     }
     else if (data.TableName == "Fournisseur")
     {
         CrystalReport5 cr = new CrystalReport5();
         crystalReportViewer1.ReportSource = cr;
         cr.SetDataSource(data);
     }
     else if (data.TableName == "Emballage")
     {
         CrystalReport6 cr = new CrystalReport6();
         crystalReportViewer1.ReportSource = cr;
         cr.SetDataSource(data);
     }
     else if (data.TableName == "HistoriqueV")
     {
         CrystalReport7 cr = new CrystalReport7();
         crystalReportViewer1.ReportSource = cr;
         cr.SetDataSource(data);
     }
     else if (data.TableName == "MatiereP")
     {
         CrystalReport8 cr = new CrystalReport8();
         crystalReportViewer1.ReportSource = cr;
         cr.SetDataSource(data);
     }
     else if (data.TableName == "HistoriqueA")
     {
         CrystalReport9 cr = new CrystalReport9();
         crystalReportViewer1.ReportSource = cr;
         cr.SetDataSource(data);
     }
     else if (data.TableName == "Produit_finis")
     {
         CrystalReport10 cr = new CrystalReport10();
         crystalReportViewer1.ReportSource = cr;
         cr.SetDataSource(data);
     }
 }