Page Number subtracted by 1 #1799
-
Hi, My coverpage is supposed to start at page 1. However, we won't show this numbering and wants the next page to start at 1 onwards. Is there a way to do this? Autotext is always counting from the first page. I have tried a variable but it's not working well, especially with multiple tables having page break in betweens. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
I don't think this is possible with BIRT, but maybe someone else knows a solution. If your report is generated in PDF format and you do not present it to the user directly (that is, if you have integrated BIRT into your application), there are workaround possible. (*) This second report could also be the same rptdesign file, with a report parameter that decides if only the cover page or only the content pages should be generated. |
Beta Was this translation helpful? Give feedback.
-
To make this clear: You need to add some Java code to your integration. An example for this (but without BIRT) can be found at https://github.com/LibrePDF/OpenPDF/blob/master/pdf-toolbox/src/test/java/com/lowagie/examples/general/copystamp/Concatenate.java |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi @speckyspooky, By any chance, have you used ReportServer.net before? I am facing same rendering issues. I have emailed them on this but it seems they can't have a reply on the matter. |
Beta Was this translation helpful? Give feedback.
-
No, I have never used "ReportServer.net". The included BIRT version would be the same like from our open source project. I use as commercial security-framework servBIRD (from Tradui ) but there will be used the same BIRT version from here. |
Beta Was this translation helpful? Give feedback.
There is a way how you can handle it within report with multiple tables an so on.
For that I created a standard report and the master page got an dynamic-text.
The special thing is the JavaScript on the onRender()-method of the element.
There is a small script added to count according your role without the cover.
I added my test report which is not very beautiful but I think it can help you.
Please be aware you need the Run and render task to get the result. If you start the PDF-creation directly from BIRT-eclipse then the pages won't be calculated. If the PDF-created from viewer so the document is created in full with page numbering the PDF looks fine.
PDF-result
cover-content-pages.pdf
D…