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

Response ContentType "application/PDF" not working in "IE 11"

$
0
0

Hi,

     I am trying to generate PDF file from HTTP Response Output stream in "Internet Explorer 11", but the PDF is not getting generated. it says, "File might have deleted or moved". kindly help me on this.

here is my code:

this.Response.AddHeader("Content-Type", "application/pdf");
this.Response.AddHeader("Content-Disposition", "attachment; filename=SampleGuide.pdf");
this.Response.Flush();
this.Response.BinaryWrite(documentContent);
//DocumentContent is a Byte[] of the data to be written in PDF
this.Response.Flush();
this.Response.End();

Regards

Karthik


Viewing all articles
Browse latest Browse all 3527

Trending Articles



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