Jump to content
We've recently updated our Privacy Statement, available here ×

Generating PDF report in browser


mgraghuraman

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...