Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Microsoft Edge - Open PDF in a Seperate Tab or Window

$
0
0

Originally posted in the Windows Insider Program forums, I found a issue with opening PDFs using the latest version of the Edge browser (10130) and wanted to know if it has been addressed in later build of Edge. I know this is happening for others as well - but from the user's end, I see it on the user's end and as a developer for a web site. Here's my post (from http://answers.microsoft.com/en-us/insider/forum/insider_internet-insider_spartan/open-pdf-in-a-seperate-tab-or-window-by-default/fec0eb6f-448a-4949-b021-3af1b872263a):

To follow up on this (and related to this issue: http://answers.microsoft.com/en-us/insider/forum/insider_internet-insider_spartan/spartan-must-open-files-in-a-new-window/6214206a-e68a-4a64-8968-20753c89093d), we develop a website that opens a new window (using webforms, after postback of a form to a new target) and then clears the response object, sets the response content type to application/pdf, adds a header for Content-Disposition with the name of the PDF (for Chrome to save the PDF with the correct name) and the write out the byte array (BinaryWrite) to the response before closing. In IE 11, Firefox and Chrome - the PDF comes up as expected but in Edge (10030) I get a "Couldn't open PDF: Something's keeping this PDF from opening." page. Any thoughts as to what's causing this? Thanks!

Thanks in advance!

Wayne


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>