mgraghuraman Posted September 18, 2009 Share Posted September 18, 2009 I need to Generating PDF report in client side application using jasperReport without showing open/save dialog box .Please any sample code is available.regardsRaghuraman Link to comment Share on other sites More sharing options...
pawel_r Posted September 18, 2009 Share Posted September 18, 2009 Well, as far as I know it depends only on browser setting. There is no way to set such behavior from server side (not in jasper niether in anything else) HTHPaweł Link to comment Share on other sites More sharing options...
sergeleo Posted September 18, 2009 Share Posted September 18, 2009 In your HTTPResponse object set ContentType as "application/pdf". Browser will call Adobe plugin to open your document. Make sure that Adobe plugin is installed.Also I would reccomend to add followin in HTTPResponse Header:addHEader("Content-Disposition", "inline;filename=YourPDFFileName.pdf");It will predefine file name if user will click "Save As"Regards, Serge 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