ngjinyi0620 Posted March 28, 2020 Share Posted March 28, 2020 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 More sharing options...
I am Leo Posted March 30, 2020 Share Posted March 30, 2020 In my case, I export the reports to 3 PDF under a list of byte[] using JasperExportManager.exportReportToPdf methodThen 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 More sharing options...
ngjinyi0620 Posted March 30, 2020 Author Share Posted March 30, 2020 Thanks, for your suggestion. I had achieved merge cell with link https://stackoverflow.com/questions/34171805/how-to-merge-cells-in-same-column-apply-rowspanThnaks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now