Active Reports 14 page report - extra blank page at runtime

Posted by: kev160967 on 15 January 2021, 4:49 am EST

    • Post Options:
    • Link

    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?

    Sample.zip

  • Posted 15 January 2021, 4:52 am EST

    Sorry, I mistyped in the question - the extra page is not blank, its a copy of page 1 but with data present in only one of the three sections. You can see this in the PDF file in the zip attachment

  • Posted 17 January 2021, 3:11 pm EST

    Hello,

    I have modified the report (Increase the FixedSize of the BandedList1 and Decrease the Size of the BandedList1) to remove the blank page from the report. Please refer to the attached modified report.

    Thanks,

    Mohit

    Invoice.zip

  • Posted 17 January 2021, 9:33 pm EST

    Thanks Mohit, I should have spotted that myself, after seeing the same thing on sectional reports. I was forgetting the repeating sections on the page report could overflow

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels