Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jasper reports : export to PDF

 
lavanya Ananth
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..

Thanks
Lavanya
 
Steven Bell
Ranch Hand
Posts: 1071
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic