Jump to content
Changes to the Jaspersoft community edition download ×

Export to PDF


Recommended Posts

By: Diogo Oliveira - diogosales

Export to PDF

2006-04-06 04:31

Hi all.

I want to concatenate a list of jasper print elements and export it to a single pdf.

 

I was using a single jasper print so I was using the facade JasperExportManager:

 

JasperExportManager.exportReportToPdfFile(jasperPrint,pdfFile);

 

But now I want to get a bunch of jasper prints into one single paged pdf. So I was trying something like this:

 

ArrayList printsList = new ArrayList();

FileOutputStream os = new FileOutputStream (reportFile);

JRPdfExporter export = new JRPdfExporter();

export.setParameter(JRExporterParameter.JASPER_PRINT_LIST,printsList);

export.exportReportToStream(os);

 

and then I noticed exportReportToStream() is protected. So, how can I export those jasper prints to a pdf?

 

Thanks in advance.

 

 

 

 

By: Diogo Oliveira - diogosales

RE: Export to PDF

2006-04-06 06:09

I completely forgot about all the other JRExporterParameters. I'm sorry for the incovenience. Problem solved.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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