My objective was to create a 5-page invoice file in PDF format. Each page has different layout so it’s not possible to write all of them in just one file. What I did is I created 5 JRXML file with multiple sub-reports. I Used iReport-3.7.0 to create the jrxml files and compile into .jasper files. This way, I don’t have to recompile the jrxml files into jasper files.
Another issue that was solved here was the page number issue. You’ll notice that every jasper page will have its own page n...