This code displays the pdf file in the browser (ie, chrome, mozilla, safari?) using whatever pdf plugin is installed. PDFBuffer is a byte array containing the pdf document Response.AddHeader("Content-Disposition", "inline") Response.AppendHeader("Content-Disposition", "attachment filename=" & "myfile" & ".pdf") 'force SaveAs (this is the download option) To do the this a button launches a new browser window with the following code in the page load event: Response.Clear() I have a simple site where the user clicks a button and a pdf file is displayed in a new broswer window.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |