AxSHDocVw.AxWebBrowser

Heiko

Contributor
Joined
Feb 10, 2003
Messages
430
Location
Holstein, Germany.
Visual Basic:
    Public WithEvents AxWebBrowser1 As AxSHDocVw.AxWebBrowser
    Private WithEvents mHtmlDoc As mshtml.HTMLDocumentClass


   mHtmlDoc = CType(AxWebBrowser1.Document, mshtml.HTMLDocumentClass)
Works fine on my notebook.

However after deploying the app (on a Win2K Server with .NET Framework installed)
the CType will always return <nothing>.


Does anyone know a workaround ?

Any hints appreciated.
Tnx
Heiko
 
Try using the IHTMLDocumentxxx interface instead, whatever version of IE is on a machine it's guaranteed to be implementing at least some of them.
 
Back
Top