• Post Reply Bookmark Topic Watch Topic
  • New Topic

printing pdf  RSS feed

 
suresh pulapally
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi gurus,

we are successfully exporting dhtml file to pdf,while exporting dailogue box is appearing (save,open...)with options. but my requirement is when export dhtml file to pdf it should open directly in pdf format ...

advance thanx
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



The keyword "inline" is what tells the browser to open it right up.
 
Joe Intrakamhang
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might also need to set your content type to pdf.

e.g. response.setContentType("application/pdf");

--Joe
 
suresh pulapally
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanx for ur reply

i made changes what u suggested in both ways
"response.setHeader ("Content-Disposition", "inline; name=\"report.PDF\""), and response.setContentType("application/pdf");

but iam getting blank screen.please suggest me what to do..this is urgent

thanx
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe if you post your code, someone will see what's wrong.
Remember, it's only urgent to you...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!