• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jasper reports : export to PDF

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1071
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
There is no "i" in denial. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic