WebBrowser.DocumentText won't load activex controls
- From: "Al Santino" <alsantino@xxxxxxxxxx>
- Date: Tue, 25 Jul 2006 18:00:26 -0700
I have a VB.NET 2005 application and am trying to use the DocumentText
method on a WebBrowser control to load a web page from a string I've
created. The string includes the line:
var xmlSrc = new ActiveXObject("Microsoft.xmldom");
in the header. The program works if I write the string to a file and then
load the page using something like
WebBrowser1.Url = New Uri("c:\file.html")
but if I try to use it like this:
WebBrowser1.DocumentText = myString
I get the error
"Automation server can't create object."
on the line where I'm create the activex object. I'm guessing it has
something to do with security settings since I get an error when I try
loading the file but when I click "allow blocked content" the file displays
correctly.
Can anyone tell me the correct way to do this?
Thanks.
Al
.
- Prev by Date: Re: Chevron support in a IDeskband toolbar
- Next by Date: Frameset: How to detect the frame inside ShowContextMenu?
- Previous by thread: IHTMLWindow4::get_frameElement returns E_NOINTERFACE
- Next by thread: Frameset: How to detect the frame inside ShowContextMenu?
- Index(es):
Relevant Pages
|
|