Merging reports into 1 pdf

0

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

 

hozawa's picture
44979
Joined: Apr 24 2010 - 4:31pm
Last seen: 1 month 1 week 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 - 3 years 10 months ago

3 Answers:

2

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
44979
Joined: Apr 24 2010 - 4:31pm
Last seen: 1 month 1 week ago
0

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: 4 years 5 months ago
0

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
7796
Joined: Nov 29 2010 - 11:59am
Last seen: 1 year 9 months ago
Feedback
randomness