Geeks With Blogs
Fórmulas e Cenas Object Reference Not Set to an Instance of an Object
Response.Clear();
Response.ContentType = "application/pdf";
Response.AddHeader("Content-Disposition", "attachment;filename=\"FileName.pdf\"");

Response.BinaryWrite(yourPdfAsByteArray);

Response.Flush();

Response.End();

Source

Enjoy :)

Posted on Friday, February 5, 2010 12:25 PM Asp.Net , C# | Back to top


Comments on this post: How to use an Aspx as a proxy for a PDF file

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Sglima | Powered by: GeeksWithBlogs.net