Jump to content
We've recently updated our Privacy Statement, available here ×

Merge jasper report


ngjinyi0620

Recommended Posts

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

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...