Merging reports into 1 pdf

What is the best way to merge several reports on JasperReport Server into 1 pdf file?

 

hozawa's picture
176469
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 11 months ago

I only found a PDF merge sample code. Thank you for hozawa give suggestion on merging reports into PDF file.

It's of great help.

cathyben3 - 7 years 9 months ago

3 Answers:

The best way I know of is to just call REST_v2 API to get reports in jrprint format and just add them to jasperPrintList and then use JRPdfExporter to generate a pdf document.

hozawa's picture
176469
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 11 months ago

how do we take care of the page numbers of the combined report. I have 3 pages in 1st report and 4 pages in second report. The combined report it doesnt show the aggregte of the total page number like x of 7. Is it possible to achieve this?

rishikvr's picture
Joined: Dec 24 2014 - 7:14am
Last seen: 8 years 3 months ago

Just an update - since version 6 there is this Report Workbook feature that lets you stich different "parts" together into one report. http://jasperreports.sourceforge.net/sample.reference/book/index.html#parts

ernestoo's picture
18278
Joined: Nov 29 2010 - 11:59am
Last seen: 5 years 7 months ago
Feedback
randomness