How to add page number option in footer with DynamicJasper API?
-
26-01-2021 - |
Question
I am creating report with help of code:
FastReportBuilder fr = new FastReportBuilder();
I want to add page number in footer of each page like.
page 1/3
page 2/3
La solution
As documented in the HOW-TO something like this:
FastReportBuilder fr = new FastReportBuilder();
fr.addAutoText(
AutoText.AUTOTEXT_PAGE_X_SLASH_Y,
AutoText.POSITION_FOOTER,
AutoText.ALIGNMENT_LEFT
)
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow