Jump to content
Changes to the Jaspersoft community edition download ×

Multiple reports to one pdf with JasperReport 0.53


dpa

Recommended Posts

Hello,

 

I use JasperReports 0.53 and I can't upgrade to a newer version.

 

Someone knows how to generate one pdf file with multiple reports by using v0.53?

 

Thank you.

Post edited by: dpa, at: 2007/03/06 22:41

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

ok. i think:

 

Code:

JasperReport report = ... // your report or reports ?
JasperPrint print = null;

for(data : datas){
JasperPrint tmp = JRFillManager.fill(report,parameters);
if(print==null){
print = tmp;
}else{
List<JRPrintPage> pages = (List<JRPrintPage>«»)tmp.getPages();
for (JRPrintPage page : pages) {
print.addPage(page);
}
}
}

 

i use this code but i think maybe someone uses another best code.

Link to comment
Share on other sites

ok. i think:

 

Code:

JasperReport report = ... // your report or reports ?
JasperPrint print = null;

for(data : datas){
JasperPrint tmp = JRFillManager.fill(report,parameters);
if(print==null){
print = tmp;
}else{
List<JRPrintPage> pages = (List<JRPrintPage>«»)tmp.getPages();
for (JRPrintPage page : pages) {
print.addPage(page);
}
}
}

 

i use this code but i think maybe someone uses another best code.

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...