- Joined
- Apr 4, 2012
- Messages
- 1
- Reaction score
- 0
Hi
We are opening the report generated as a pdf in the browser. We would like the pdf to have the file name that we set but the filename set in "response.setHeader("Content-disposition", "inline; filename=\"" + reportName + ".pdf\""); is being ignored. If I use "attachment" instead of "inline", the filename is getting set properly. However, in case of attachment option, a popup comes up. The popup is not desirable to the user. So, we would like to find out a way to set the filename correctly with the "inline" option. We are using IE 7. Please advise how we can open the generated pdf in the browser with the desired file name. Any help will be appriciated.
thanks
Yogesh
We are opening the report generated as a pdf in the browser. We would like the pdf to have the file name that we set but the filename set in "response.setHeader("Content-disposition", "inline; filename=\"" + reportName + ".pdf\""); is being ignored. If I use "attachment" instead of "inline", the filename is getting set properly. However, in case of attachment option, a popup comes up. The popup is not desirable to the user. So, we would like to find out a way to set the filename correctly with the "inline" option. We are using IE 7. Please advise how we can open the generated pdf in the browser with the desired file name. Any help will be appriciated.
thanks
Yogesh