Jump to content
Changes to the Jaspersoft community edition download ×

Page numbering for multiple reports


couetbis

Recommended Posts

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

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...