Tall and Wide table causing extra pages in report

4 posts, 0 answers
  1. Joe
    Joe avatar
    4 posts
    Member since:
    Mar 2016

    Posted 20 Jul Link to this post

    I have a report with multiple tables. One of the tables has a dynamic number of rows and columns. Both the number of columns and the number of rows makes the table larger than one page (spanning it over 4 pages). But something is adding blank pages to the report, sort of like the other tables are wide enough to require 2 pages (but they are not that wide).

    If I delete the table, the other tables render correctly. Or, if I set the paper size to 17x11 inches (big enough to hold the table on one page), I don’t get extra tables. I've set Keep Together = False on all elements of the table, panel, and section.

    I attached .png's of each page. I had to block the content, but I hope it's still useful. As you can see, pages 2, 4, 6, and 8 have the page number in the footer, but are otherwise blank. They shouldn't be in the report.
  2. Stef
    Admin
    Stef avatar
    3041 posts

    Posted 22 Jul Link to this post

    Hello Joe,

    This is the expected behavior when horizontal paging occurs - Understanding Pagination (Horizontal Paging).

    To avoid the empty pages, test using custom PaperSize that will gather the widest item into a single page.

    Regards,
    Stef
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
  4. Joe
    Joe avatar
    3 posts
    Member since:
    May 2016

    Posted 25 Jul in reply to Stef Link to this post

    Thanks Stef!

    Is it possible to force a page break after a certain number of columns, or after a certain table width is reached?

  5. Stef
    Admin
    Stef avatar
    3041 posts

    Posted 26 Jul Link to this post

    Hi Joe,

    PageBreaks are supported only by report sections. The Table item does not provide page breaks, it is split based on the report's PageSettings properties. In case the item exceeds the available space in width, the horizontal paging will add a blank page after each vertical page.

    Instead test using a custom PageSettings' PaperKind and PaperSize. This will let you gather the whole report in width, after evaluating the data in code.


    Other approach is to group the Table item based on the data as in How to: Create Multi-Column Report - Across the Page and Then Down.

    Regards,
    Stef
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top