I run several reports and combine them into one PDF file. For each report, I pass the data source, parameters and report path to the next. The result is a PDF file with the correct number of pages, but all pages are empty. What am I missing?
LocalReport report = null; PdfDocument pdfDoc = new PdfDocument(); private void ProcessReport( ReportDataSource reportDS, ReportParameter[] reportParms, string reportPath) { string format = "PDF"; string deviceInfo = null; string encoding = String.Empty; string mimeType = String.Empty; string extension = String.Empty; Warning[] warnings = null; string[] streamIDs = null; report = new LocalReport(); report.EnableExternalImages = true; report.ReportPath = reportPath; if (reportParms != null) report.SetParameters(reportParms); if (reportDS != null) report.DataSources.Add(reportDS); Byte[] pdfArray = report.Render( format, deviceInfo, out mimeType, out encoding, out extension, out streamIDs, out warnings);
source share