Hi Folks ! :O)
In a web application, I'm trying to load a PDF document in the client's
browser.
The following code works on my workstation but fails on another one :
'***
With Response
.Buffer = True
.Clear()
.ClearContent()
.ClearHeaders()
.ContentType = "application/pdf"
fluxMemoirePDF.WriteTo(.OutputStream)
.Flush()
.Close()
End With
'***
The page doesn't change at all.
Now, if I comment this line out :
'***
.ContentType = "application/pdf"
'***
The page still doesn't change but the PDF document is opened in another
window...
I've searched a little into the registry and I found this key... which seems
to confirm that the content type "application/pdf" should be supported :
HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/pdf
- CLSID : {CA8A9780-280D-11CF-A24D-444553540000}
- Extension : .pdf
The given CLSID is pointing on the following DLL and exists on the disk :
C:\Program Files\Adobe\Acrobat 7.0\ActiveX\AcroPDF.dll
I also checked the security settings for the Internet zone in IE and it's
seems alright for ActiveX execution.
I'm working on Windows XP 2002 SP1 and VS.NET 1.1 SP1.
Thanks for reading me, any input would be much appreciated.
--
Best Regards
Yanick Lefebvre