Chrome download pdf vs aspx files






















Active 7 years, 11 months ago. Viewed 11k times. Improve this question. Add a comment. Active Oldest Votes. I had this problem too and I finally solved it after several researches. AddHeader "Content-Length", fileInfo. ToString ; I hope that I had helped you. Improve this answer. Community Bot 1 1 1 silver badge. MemoryStream bytes ; Response. Clear ; Response. Tip To have PDF files open in the browser again, repeat these steps and select the Preview in Firefox option or Use other option to choose another program.

Internet browser help and support. Was this page useful? Now you have to make sure that you have selected PDF format to save the file. In the dropdown box of Format, select All Files. If the Save As box shows. Change it to. If you are a web developer and need to convert your asp. You will have to first download tools like iTextSharp in your project. Buy PDFelement right now!

Find centralized, trusted content and collaborate around the technologies you use most. Connect and share knowledge within a single location that is structured and easy to search.

My app dynamically generates a PDF report when the user browses to a particular aspx page. For the most part, things work fine on various browsers. However, on Chrome, when Chrome's PDF viewer is being used, the following can happen : - the user presses the floating diskette icon on the bottom right hand side of the viewer to save the PDF document. The file is saved with the aspx page's name. But is there a way to get chrome to default the name of the file to save to have a ".

PDF" extension? In Chrome it won't display it in its PDF viewer - just gives the user the chance after downloading to open the file using whatever program they have associated with the ".

You should try using content-disposition header while streaming the PDF file to the browser. For example,. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?



0コメント

  • 1000 / 1000