2006 IR Open Discussion Posted August 20, 2006 Share Posted August 20, 2006 By: Ruben Misrahi - rnmisrahi Showing PDF documents 2003-12-04 14:08 Is there a way to show a pdf document on the fly without saving it to a <name>.pdf file? Related to this: Is there a way to know where the Acrobat Reader application is so we execute it without hard-coding the assumed path? By: Thomas Wegmueller - twegmueller RE: Showing PDF documents 2003-12-09 00:05 You cannot show pdf files in java with jasperreports. What you can do is: show the preview of the report on the Screen with the dori.jasper.view.JasperViewer-Frame (or a similar solution). To start Acrobat to show a pdf file should work on Windows with: Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler C:pathname.pdf"); Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now