Exemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrystalReport2 rpt = new CrystalReport2();

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
 private void Print2_Load(object sender, EventArgs e)
 {
     Printing.CrystalReport2 report = new CrystalReport2();
     report.Database.Tables[0].SetDataSource(Prints.Tables["DataTable1"]);
     crystalReportViewer1.ReportSource = report;
     crystalReportViewer1.Refresh();
 }