How can I display a .pdf doc in a webForm?

With Response
.Clear()
.ContentType = "application/pdf"
.AddHeader("Content-Disposition", _
"inline; filename=""" & strFileName & """")
.WriteFile(strSaveFile)
End With

where strFileName is the name only and strSaveFile is the full path. This will cause the page to open Acrobat and show the file you listed.

HTH

Eva
 
Back
Top