<BR> I have added "pdf.ocx" reference to my project. i am trying the below code to open the pdf file. see this code and suggest me<BR><BR>Imports PdfLib<BR><BR>Dim s As New PdfLib.PdfClass()<BR>s.src = "sample.pdf"<BR>s.LoadFile("sample.pdf")
Our vendor app saves PDF files ( and all other files) in a field in the database. I read it from the field using this:<BR><BR><BR>Response.AddHeader("Content-Type", "application/pdf")<BR> Response.AddHeader("Content-Disposition", "filename=" & dr5("ole_description") & ";")<BR> Response.BinaryWrite(CType(dr5("ole_data"), Byte()))<BR>---<BR>Ole_data is the field in the database and it's image. Ole_description is another field in the same table with the name of the PDF.<BR>--<BR>I hope this helps.