Help using the WebBrowser control as a generic ActiveX plug-in.

  • Thread starter Thread starter JDeats
  • Start date Start date
J

JDeats

If I embed an WebBrowser control on a WinForm I have the ability to
load any ActiveX containable object into that control using this
syntax:

webBrowser1.Url = new Uri(@"c:\myfile.doc");

Using this approach, I can load a MS Word document into the browser
and access the Word document object model like this:

object obj = webBrowser1.Document;
Word.Document odoc = (Word.Document)obj;

Using this same technique I would like to know if it's possible to
access the object model for Flash SWF movies.
 
It should be, but you will need to have an HTML page to embed it in, and
then you will have to navigate the page structure to get the reference to
the flash object.

Hope this helps.
 
Back
Top