Hi there,
I have to print a group of invoices of different clients in one .pdf, and I need to add an extra blank page for each invoice that has odd pages count, because I need to print them using double-side print.
Example:
Invoice #1: 2 pages
Invoice #2: 1 page
Invoice #3: 1 page
I need to print a pdf with 6 pages (page 4 and 6 should be empty).
I'm using Reporting Q3 2013
Thanks in advance.
7 Answers, 1 is accepted
You can insert blank pages in the report using the PageBreak property. However, this cannot be controlled by the odd/even page number, since the report is paged after it has been processed - Report Life Cycle. The scenario is not supported and you will need to use a third party PDF library to insert blank pages in the exported PDF file.
Regards,
Nasko
Telerik
Nasko, thank you for your response.
Regards.
Hi Luke,
We still render the report based on the same approach. Maybe if you know know the number of records that will be displayed per page in advance, you may add a Grouping to the report and set the PageBreak property of the group. Can you give us more details about the scenario, so we might be able to provide any additional suggestions?
I will be looking forward to receiving an update from you.
Regards,
Neli
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Hi Neli,
I have a report book that I'd like to create that is full of individual reports with varying page length. Basically it's
Report #1 - 5 pages
Report #2 - 4 pages
Report #3 - 9 pages
This creates a report book of 18 pages
What I'd like to be able to do is determine the odd numbered page reports and add a blank page after them
Report #1 - 5 pages + Add Blank Page
Report #2 - 4 pages
Report #3 - 9 pages + Add Blank Page
This creates a book of 20 pages and now I can print on the front and back and never have a report start on the back of a page.
Thanks for the help!
Hello Luke,
Thank you for the additional details. The total number of the report document pages depends on the export format among other factors. This number is available in the Page sections of the Report - check Report Structure and How to: Add/Remove Page Header and Footer Sections. You may use the Page function PageCount to get the count of the generated pages. Note that when the count of the total pages becomes known the processing and rendering of the report have finished, hence it is not possible to add more pages.
If you know the number of the generated pages a-priory (generally, it depends also on the data), you may use Conditional Formatting or Bindings to manipulate the visibility of a dummy item or section (e.g. Report/Group Footer) to force the Reporting engine to generate an extra page. I'm afraid though, that in the general case this is not possible.
Let us know if you have further questions.
Regards,
Neli
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.