Jump to content
We've recently updated our Privacy Statement, available here ×

How to get the number of pages of RTF-report??


nosferatum

Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

The most common way to know your number of pages, is to obtain a JasperPrint object from your source report, and to get the JasperPrint object's number of pages. For example:

Code:
JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
int numberOfPages = jasperPrint.getPages().size();

 

Regards,

sanda

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...