We are working on a project with jasper reports where we lazily compile Jasper reports in memory. Is there a way to also lazily compile a subreport in memory and use it with the parent report?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I found the answer to my own question. The subreportExpression does not have to be of type string. It can actually be a JasperReport object. So I will just compile the subreport in memory and pass it to the report as a parameter.