Posted 15 January 2021, 4:49 am EST
I have a problem with a page report. In the designer it renders to a single page, but when rendering at run time to PDF there is an extra blank page at the end. The report has three data sets, and on the blank page only the Header data set is used, the area allocated to the others remaining blank. I’ve included the report layout file with an embedded json data set in the attached zip file, along with the PDF file created when exporting the same report with the same data set at run time. This is the code I’m using to export the report at runtime:
static System.IO.MemoryStream RenderReport(PageReport report) {
var repdoc = report.Document;
var pdfRenderingExtension = new GrapeCity.ActiveReports.Export.Pdf.Page.PdfRenderingExtension();
var prov = new GrapeCity.ActiveReports.Rendering.IO.MemoryStreamProvider();
repdoc.Render(pdfRenderingExtension, prov);
var ms = prov.GetPrimaryStream().OpenStream();
return ms as System.IO.MemoryStream;
}
Do you have any suggestion as to why the same report with the same data set is behaving differently in my .Net 5 application compared to when previewing in the report designer?