[Migrated content. Thread originally posted on 21 November 2006]
I need to get the html source of a webbrowser component, so I can parse it and use the parsed data in my program, but he standard AcuGT web doesn't allow me to view the html source of the displayed page.For C# I found the following code:
object empty = System.Reflection.Missing.Value;
axWebBrowser1.Navigate("about:blank", ref empty, ref empty, ref empty, ref empty);
//Now we can get a reference to the document's DOM via the IHTMLDocument interface and write to it.
// create an IHTMLDocument2
mshtml.IHTMLDocument2 doc = axWebBrowser1.Document as mshtml.IHTMLDocument2;
// write to the doc
doc.clear();
doc.writeln("This is my text...");
doc.close();Does anyone know I can use this solution in AcuGT?



