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

            rpt.Site = this.Site;
            return(rpt);
        }
예제 #2
0
 private void formprint2_Load(object sender, EventArgs e)
 {
     Printing.CrystalReport7 report = new CrystalReport7();
     report.Database.Tables[0].SetDataSource(Prints.Tables["DataTable1"]);
     crystalReportViewer1.ReportSource = report;
     crystalReportViewer1.Refresh();
 }