JabbaTheNut
Programmer
I have used the following VB code from behind a web form to open a PDF file. This code writes the PDF file to the current browser window. How can I write the PDF to a new window? I am using ASP.Net.
VB CODE:
' Obtain the appid from the text box on the web form
Dim strAppID As String = MyTxtBox.Text
' Assemble the proper PDF file name using the above appid
Dim strPdfFile As String = "c:\MyPDFDirectory\" & strAppID & ".pdf"
' Write the PDF file to the web browser
Response.ContentType = "Application/pdf"
Response.WriteFile(strPdfFile)
Response.End() Game Over, Man!
VB CODE:
' Obtain the appid from the text box on the web form
Dim strAppID As String = MyTxtBox.Text
' Assemble the proper PDF file name using the above appid
Dim strPdfFile As String = "c:\MyPDFDirectory\" & strAppID & ".pdf"
' Write the PDF file to the web browser
Response.ContentType = "Application/pdf"
Response.WriteFile(strPdfFile)
Response.End() Game Over, Man!