OK, I'm trying to load a string containing HTML with MSHTML but I'm having some trouble. My code is...
object[] objTemp = { "<html>...</html>" };
IHTMLDocument2 objHTML;
objHTML = new HTMLDocumentClass();
objHTML.writeln(objTemp);
objHTML.execCommand("Print", false, null);
When I check the objHTML.writeln in VS 2005 it shows that it wants object[] but when I check the MS site it shows it wanting a SAFEARRAY structure. It keeps complaining that it can't use the object I've created and passed to write().I've created a reference to Microsoft.mshtml, I dont know if I'm missing reference.
PS
I can't use a web browser control as I'm in a window service.