private void Print5_Load(object sender, EventArgs e) { Printing.CrystalReport5 reportc = new CrystalReport5(); reportc.Database.Tables[0].SetDataSource(Prints.Tables["DataTable1"]); crystalReportViewer1.ReportSource = reportc; crystalReportViewer1.Refresh(); }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { CrystalReport5 rpt = new CrystalReport5(); rpt.Site = this.Site; return(rpt); }