private void SalesProdReportForm_Load(object sender, EventArgs e) { this.configurationTableAdapter.Fill(this.dataSet2.configuration); runCreateSummaryTable(); ReportDocument cryRpt; productSalesReportTableAdapter.Fill(this.dataSet2.ProductSalesReport); SalesProdReport rpt = new SalesProdReport(); rpt.SetDataSource(dataSet2); cryRpt = new ReportDocument(); cryRpt.Load(rpt.FileName.ToString()); cryRpt.SetDataSource(dataSet2); cryRpt.ExportToDisk(ExportFormatType.PortableDocFormat, ReportFolder.reportFolderName + @"\ProductSalesDetails.pdf"); }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { SalesProdReport rpt = new SalesProdReport(); rpt.Site = this.Site; return rpt; }