K
kavitha
Hi All,
I have code like here below. I am trying to load a
HTMLDocument from a url (file or http).
I tried createDocumentFromUrl() as well as open() but no
result.
I just need a HTMLDocument for a url, it will solve my
prolem. URGENT !!
SOMEBODY HELP ME.
HTMLDocument doc = new HTMLDocumentClass();
IHTMLDocument2 idoc = (IHTMLDocument2) new HTMLDocument();
/*
//For someone, doing this solved the problem
idoc.write("<HTML></HTML>");
idoc.close();
*/
// this line is throwing
// 1. UnauthorisedException: Access denied for urls of
//type "C:\test.html" or "http://localhost/test/test.html"
// 2. NullReferenceException second
// argument is anything other than "print"
idoc = doc.createDocumentFromUrl
("http://localhost/test/test.html", "print");
----------------------------------------------------
HTMLDocument doc = new HTMLDocumentClass();
IHTMLDocument2 idoc = (IHTMLDocument2) new HTMLDocument();
// This line is retriving the document but its
// readystate is always loading, how will it come to
// complete state?
idoc = (IHTMLDocument2) doc.open
("http://localhost/test/test.html", "_self", null, null);
Kavitha
I have code like here below. I am trying to load a
HTMLDocument from a url (file or http).
I tried createDocumentFromUrl() as well as open() but no
result.
I just need a HTMLDocument for a url, it will solve my
prolem. URGENT !!
SOMEBODY HELP ME.
HTMLDocument doc = new HTMLDocumentClass();
IHTMLDocument2 idoc = (IHTMLDocument2) new HTMLDocument();
/*
//For someone, doing this solved the problem
idoc.write("<HTML></HTML>");
idoc.close();
*/
// this line is throwing
// 1. UnauthorisedException: Access denied for urls of
//type "C:\test.html" or "http://localhost/test/test.html"
// 2. NullReferenceException second
// argument is anything other than "print"
idoc = doc.createDocumentFromUrl
("http://localhost/test/test.html", "print");
----------------------------------------------------
HTMLDocument doc = new HTMLDocumentClass();
IHTMLDocument2 idoc = (IHTMLDocument2) new HTMLDocument();
// This line is retriving the document but its
// readystate is always loading, how will it come to
// complete state?
idoc = (IHTMLDocument2) doc.open
("http://localhost/test/test.html", "_self", null, null);
Kavitha