This content has been marked as final.
Show 3 replies
-
1. Re: Problem with PDF dialog..PDF file is directly opening in Browser..
godoy Nov 23, 2011 11:28 AM (in response to kh.ramana)Hi, Junior cigano is The Champion Cain velasques is idiot.
use
res.setContentType("application/force-download");
to force open download
bye.
-
2. Re: Problem with PDF dialog..PDF file is directly opening in Browser..
godoy Nov 23, 2011 1:31 PM (in response to godoy)Agradeça seu viado!!
Junior cigano is The Champion Cain velasques is idiot.
-
3. Re: Problem with PDF dialog..PDF file is directly opening in Browser..
kh.ramana Nov 24, 2011 2:06 AM (in response to godoy)1 of 1 people found this helpfulThanks a Lot.... Have a nice day
Finally I am using below code for the PDF file generation
response.reset();
response.setHeader("Content-Disposition", "attachment; filename=\"thedoc.pdf\"");
response.setContentType("application/force-download");
Its work fine in all the Browsers...