3/31/2024 0 Comments Vb net 2010 pdf![]() ![]() I have tried substituting "application/pdf" for the ContentType with the same reasults. It is important that the file be downloaded to the clients local machine rather that simply send the PDF to a browser window. Response.AddHeader("content-disposition", "attachment filename=" & fileName) ![]() Public Sub ForcePDFDownload(ByVal Response As HttpResponse, ByVal FullVirtualPath As String, ByVal fileName As String) ![]() However when the code is run it returns a usless error that tells me there was an error. I am using an asp.imagebutton to trigger the code behind that first updates the SQL database with the info about the download and then calls a Public sub: ForcePDF Download. I am trying to force the download of the selected PDF to the user's local machine. I have created several PDFs using Adobe Acrobat Standard 9. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |