Reputation: 20591
I work with POI and want to make printable report. So all fine, but I need to get total pages count (page in A4 format) of dynamically generated .xls
. When use HeaderFooter.numPages()
I get instead of total pages count this symbols: &N
Upvotes: 0
Views: 1459
Reputation: 661
@Gagravarr is correct. Since the number of pages that will be printed is stored, there's not really a way to access it from the Apache POI. I would suggest switching the excel file to a PDF and counting it that way as was suggested.
Upvotes: 1