Пример #1
0
        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");
        }
Пример #2
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     SalesProdReport rpt = new SalesProdReport();
     rpt.Site = this.Site;
     return rpt;
 }