This is a migrated thread and some comments may be shown as answers.

Tall and Wide table causing extra pages in report

3 Answers 344 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 20 Jul 2016, 09:05 PM
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.

3 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 22 Jul 2016, 12:58 PM
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
0
Joe
Top achievements
Rank 1
answered on 25 Jul 2016, 09:32 PM

Thanks Stef!

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

0
Stef
Telerik team
answered on 26 Jul 2016, 01:38 PM
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
Tags
General Discussions
Asked by
Joe
Top achievements
Rank 1
Answers by
Stef
Telerik team
Joe
Top achievements
Rank 1
Share this question
or