예제 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrystalReport2 rpt = new CrystalReport2();

            rpt.Site = this.Site;
            return(rpt);
        }
예제 #2
0
        public void crstl(DataTable dt1)
        {
            CrystalReport1 cr = new CrystalReport1();
            CrystalReport2 cf = new CrystalReport2();

            if (dt1.TableName.ToString() == "Fournisseur")
            {
                cf.SetDataSource(dt1);
                crystalReportViewer1.ReportSource = cf;
            }
            else if (dt1.TableName.ToString() == "Client")
            {
                cr.SetDataSource(dt1);
                crystalReportViewer1.ReportSource = cr;
            }
            else if (dt1.TableName.ToString() == "Emballage")
            {
            }
        }