Merge jasper report

0

Hi All,

I have currently got three separate reports that i want to be able to print at the same time.

To merge them into one report. Each report has its own SQL query and own parameter.

May I know any easy way to merge them?

I had tried to use jasper book and subreport. but cant generates with the expected output. 

May i know what query should i put in main jasper book and subreport. I having trouble with main report query cause all report are using completely different query.

For jasper book, when i generate it generate more record then when i test the report individually. Any solution for this?

Thanks

ngjinyi0620's picture
Joined: Mar 8 2020 - 11:43pm
Last seen: 1 month 1 week ago

2 Answers:

0

In my case, I export the reports to 3 PDF under a list of byte[] using JasperExportManager.exportReportToPdf method

Then I use PDFMergerUtility library to merge them into one report.

The result is a byte[]. You can write it into a file or upload it to S3.

I am Leo's picture
173
Joined: Jan 3 2020 - 3:13am
Last seen: 2 weeks 6 days ago
0

Thanks, for your suggestion. I had achieved merge cell with link 

https://stackoverflow.com/questions/34171805/how-to-merge-cells-in-same-column-apply-rowspan

Thnaks

ngjinyi0620's picture
Joined: Mar 8 2020 - 11:43pm
Last seen: 1 month 1 week ago
Feedback
randomness