AxSHDocVw.AxWebBrowser

Heiko

Well-known member
Joined
Feb 10, 2003
Messages
430
Location
Holstein, Germany.
Code:
    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 its guaranteed to be implementing at least some of them.
 

Similar threads

Back
Top