Controlling Page Breaks When Rendering Local Report as a PDF

I'm having some issues with page breaks being automatically added to a report when rendered as a PDF. I have a few textboxes which can grow to accomodate various amounts of text and a have a border on all sides. Depending on the actual rendered size of textbox one of three things happens:

1) Textbox can fit in remaining space on a given page (after previous items) - textbox added as expected (no page breaks added).

2) Textbox cannot fit in remaining space on a given page and the textbox is equal or smaller to the page size - page break automatically added before the textbox, entire textbox placed on the next page.

3) Textbox cannot fit in remaining space on a given page and the textbox is bigger than the page size - textbox is split across two or more pages without a page break being added before it. Textbox bottom border is added at the end of each page, top border is not added at the top of each page.

This is local rdlc (localreport) file that is being rendered as a PDF when the page loads.

Is there any way to control these behaiviors I would prefer for the textbox(es) to act as they do in case 3 (except for the bottom border being added at the end each page) so that they appear as continuous boxes across the report pages without adding unnecessary space as in case 2...



Answer this question

Controlling Page Breaks When Rendering Local Report as a PDF

  • Jacob Bolan

    I have come up with a solution/workaround. Put all the tables into a List object. Then take the large text column out of the table and place it in the list object itself. As long as the large text column is NOT in a table but in a List object - it seems to work much better.

    Richard.


  • GoingGreyFast

    I'm having the same problem. I've found that the page break happens before the large block of text starts regardless of where it starts on the page. Even if there is 3/4 of the page empty it will always page break.

    Here's an example. I'm just pulling back the Article Title and the Article Details. I made the table background dark just so to distinguish it from the rest of the page.

    http://www.1uvaknd.com/pagebreaktest.pdf

    This is in VS2003 preview mode. Take a look at page 2. The page size is huge in comparison with the other pages.

    http://www.1uvaknd.com/pagebreaktest_page1.jpg
    http://www.1uvaknd.com/pagebreaktest_page2.jpg
    http://www.1uvaknd.com/pagebreaktest_page3.jpg

    Anyone else run into this

    Thanks

    Richard.


  • mark_hykurama

    Is there a workaround if it is a subreport instead of a table

    Thank you,
    Riady


  • Controlling Page Breaks When Rendering Local Report as a PDF