Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need a way to open in new browser 1

Status
Not open for further replies.

llmclaughlin

Programmer
Aug 20, 2004
140
0
0
US
Is there way with the code below to make the pdf open in new browser window?

Dim m_stream As New System.IO.MemoryStream()
m_stream.Position = 0
Response.ContentType = "application/pdf"
Response.AddHeader("content-disposition", "inline; filename=MyExport.pdf")
Response.BinaryWrite(m_stream.ToArray())
Response.End()



Louie
 
You will have to have a link that opens a new window and then use your current code in that page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top