private void ReceiptAndAdjReportForm_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'dataSet2.PaymentAdjustRpt' table. You can move, or remove it, as needed. this.paymentAdjustRptTableAdapter.Fill(this.dataSet2.PaymentAdjustRpt); // TODO: This line of code loads data into the 'dataSet2.configuration' table. You can move, or remove it, as needed. this.configurationTableAdapter.Fill(this.dataSet2.configuration); this.configurationTableAdapter.Fill(this.dataSet2.configuration); runCreateSummaryTable(); ReportDocument cryRpt; this.paymentAdjustRptTableAdapter.Fill(this.dataSet2.PaymentAdjustRpt); ReceiptAndAdjReport rpt = new ReceiptAndAdjReport(); rpt.SetDataSource(dataSet2); cryRpt = new ReportDocument(); cryRpt.Load(rpt.FileName.ToString()); cryRpt.SetDataSource(dataSet2); cryRpt.ExportToDisk(ExportFormatType.PortableDocFormat, ReportFolder.reportFolderName + @"\ReceiptAndAdjustments.pdf"); }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { ReceiptAndAdjReport rpt = new ReceiptAndAdjReport(); rpt.Site = this.Site; return rpt; }