couetbis Posted December 21, 2007 Share Posted December 21, 2007 Hi,I have many reports in one PDF (with JRExporterParameter.JASPER_PRINT_LIST), it's good but now I want have correct page numbering for all pages. For exemple :Report1 : 1 page (page 1/n+m+1)Report2 : 1 to n pages (page 2/n+m+1 ... page n+1/n+m+1)Report3 : 1 to m pages (page n+1/n+m+1 ... page n+m+1/n+m+1) That's the principe, it's possible ?? Thanks for all help and suggestions Link to comment Share on other sites More sharing options...
rsilverns.sympatico.ca Posted December 21, 2007 Share Posted December 21, 2007 I don't know if this is possible under JaserpReorts directly, but you can easily post-process the report with iText and insert the Page numbering manually that way. iText is pretty powerfull and it can be done with about 20 lines of code. Not sure if this helps or not... R. Link to comment Share on other sites More sharing options...
Teodor Danciu Posted December 21, 2007 Share Posted December 21, 2007 Hi, I would make a master report that deals with the page footer displaying the "page i of n" part. And inside it I would put 3 subreports that generate the actual content for those 3 sections. If this is not possible for you now, then you could mark the text fields displaying the page index and the total number of pages with special "key" values.Then, you can look for those elements in the generated JasperPrint objects and change their values, before batch exporting them. I hope this helps.Teodor Link to comment Share on other sites More sharing options...
rsilverns.sympatico.ca Posted December 21, 2007 Share Posted December 21, 2007 Teodor does that work if the 3 reports have different page sizes/layouts? R. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now