locked
Export to PDF missing data RRS feed

  • Question

  • User-145105940 posted

    I have a main report with about 25 subreports (some nested), not all of which are used every time.  This morning I noticed that the last 2 pages of some of the reports are now blank when being exported to PDF.  All of the data appears properly in the preview window, and it all shows up when exporting to Word and Excel, but not when using PDF.  There have been no changes made to the page that the ReportViewer object is on, or the data/objects that populate the report.

    The 2 empty pages at the end still contain the header and footer, and represent the proper length that the report would be if the missing parts were there.

    Has anyone else experienced something like this, or have any suggestions on where to look?

    Thursday, April 10, 2014 7:00 PM

Answers

  • User-145105940 posted

    I have figured out the issue.  Turns out that it was relating to having rectangles around the section header textboxes and the subreports, and having the "keep contents together..." option checked on them.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, April 15, 2014 4:39 PM

All replies

  • User1140095199 posted

    Hi,

    I have a main report with about 25 subreports (some nested), not all of which are used every time.  This morning I noticed that the last 2 pages of some of the reports are now blank when being exported to PDF.  All of the data appears properly in the preview window, and it all shows up when exporting to Word and Excel, but not when using PDF.  There have been no changes made to the page that the ReportViewer object is on, or the data/objects that populate the report.

    The 2 empty pages at the end still contain the header and footer, and represent the proper length that the report would be if the missing parts were there.

    Set Up the margins and size specifications. Generally there are issues with blank pages in between or end of PDF when the margins are net set properly. Some of the Pages might be oversized which is deforming the complete report and spilling some pages.

    Refer to these similar issues;

    http://social.msdn.microsoft.com/Forums/en-US/84e31e12-021a-4f53-a8fa-a2d6b7b705e2/why-do-i-see-a-blank-page-in-pdf-export-?forum=vsreportcontrols

    http://forums.asp.net/t/1546851.aspx?Problem+with+RDLC+Export+to+PDF

    Best Regards!

    Sunday, April 13, 2014 11:56 PM
  • User-145105940 posted

    Hi Sam,

    It's not an issue with the margins pushing to extra pages.  The last 2 pages of data are being exported as blank pages instead of showing the data. 

    The report is laid out as:

    • Title Page
    • Main Details
      • Sub Details 1
        • Details
        • Analysis
        • Results
        • Comments
      • Sub Details 2
        • Details
        • Analysis
        • Results
        • Comments
    • Final Comments

    The report generates and shows properly in the ReportViewer.  But when exporting to PDF, everything up to the Results in the 2nd Sub Details comes through, but it stops there.  The Results, Comments and Final Comments aren't there and I have 2 blank pages in their place. 

    If it was a spacing/margins issue, I should see the same issue in the 1st Sub Details.

    Thanks.

    Monday, April 14, 2014 10:38 AM
  • User-145105940 posted

    I have figured out the issue.  Turns out that it was relating to having rectangles around the section header textboxes and the subreports, and having the "keep contents together..." option checked on them.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, April 15, 2014 4:39 PM