2005 IR Help Posted August 26, 2006 Share Posted August 26, 2006 By: sepi - sepideh How to diplay a generated pdf in acrobat 2004-06-16 10:24 after I use JasperManager.runReportToPdfFile to create a pdf,I wantto show the generated pdf in acrobat reader,what should I do? Is there any jasper method to open acrobat or should i use iText?Itried Itext,but nothing shows atall. Thanks, By: Mark Engstrom - me2kme RE: How to diplay a generated pdf in acrobat 2004-06-17 03:45 If you have the filename and you can access that file from your java code then you could use Runtime.getRuntime().exec("cmd.exe /C start AcroRd32 " + """ + filename + """); where file is the fully qualified path name. Is this what you mean ? By: sepi - sepideh RE: How to diplay a generated pdf in acrobat 2004-06-18 08:44 Thanks,That's what I meant,But when I gerenate a pdf through Jaspermanager and then try to use this command it open acrobat reader but Shows message"there was an error opening this document,sharing vialoation".it can't open the pdf, but for other normal pdf which is not created by jasper manager it works fine. Any comment? Thanks, By: Mark Engstrom - me2kme RE: How to diplay a generated pdf in acrobat 2004-06-18 08:51 1. If you try to open the generated pdf in acrobat outside of your application does that work ? 2. Do you get any exceptions ? 3. Is it possible that the application generating the pdf still has the file open ? By: sepi - sepideh RE: How to diplay a generated pdf in acrobat 2004-06-18 09:04 I think the application kept the file open,and that was the reason,I shut down eclipse and start it again,it works fine now. Thanks alot for the quick reply:) 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