wood burning stoves 2.0*
The moose likes Other Open Source Projects and the fly likes jasper reports : export to PDF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "jasper reports : export to PDF" Watch "jasper reports : export to PDF" New topic

jasper reports : export to PDF

lavanya Ananth
Ranch Hand

Joined: Apr 04, 2005
Posts: 40
Hi ,

I am new to jasper reports. I use the JRPdfExporter to generate reports in a PDF format.

The issue i have is that the report gets displayed in the same browser from which i submit input parameters to generate the reports.

I want the report in a seperate window. Is this possible?

Please help. I find this forum a lot active. I have tried posting in other jasper reports forums but havent got a reply still...Hope i get a reply here..

Steven Bell
Ranch Hand

Joined: Dec 29, 2004
Posts: 1071
Sounds to me like the solution lies with using a target for your link or a javascript popup. It doesn't sound like a JasperReports problem, but I'm really not familiar with JasperReports
louise rochford
Ranch Hand

Joined: Apr 04, 2002
Posts: 119
We have something that sounds like what you might want.

The user clicks a link on the web page. This triggers creation of a pdf file using Jasper reports & then starts a download process. The user sees their standard download dialog box & if they select 'open' rather than 'save' it automatically opens Adobe & displays the pdf report.

The key bit of code is:

If this is the behaviour you're looking for, try investigating file download for more info.

By the way, we ran into a problem using the basic JRPdfExporter. If you need to deal with large reports, look into downloading a fix from the jasper sourceforge project called patch.tar.gz. It allows you to use JasperExportManagerStreaming.fillReportToPdfStreaming() instead.
I agree. Here's the link: http://aspose.com/file-tools
subject: jasper reports : export to PDF
Similar Threads
html to pdf conversion
Jasper report with html output
Problem in generating pdf Jasper report from large amount of data
How to Run Jasper Reports in the Jboss
Generaet a specific PDF Version using Jasper