public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { CrystalReport7 rpt = new CrystalReport7(); rpt.Site = this.Site; return(rpt); }
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(); }