Problem with mshtml .. won't work on some comps

  • Thread starter Thread starter Alfa & Omega
  • Start date Start date
A

Alfa & Omega

I have application that's using web browser (which is hidden in app but that's not the point).

At some stage of working in my application I have to check HTML of current page that's in browser .

I found that i can get HTML content by using:

(private AxSHDocVw.AxWebBrowser myWB;)
<CODE>
mshtml.HTMLDocumentClass doc = (mshtml.HTMLDocumentClass)myWB.Document;

string str = doc.IHTMLDocument2_body.innerHTML;

</CODE>

now i have in str HTML content of current apge BUT...On some mashines this doesn't work and I can't
figure out why, all is OK until it reaches first line of <CODE> (this with doc)...



I thouht it was problem in SP2...but it isn't because it works on som ecomps with SP2..



If anyone could give me idea why this wont work on some comps..

Thanks a lot!


BR

Igor
 
Problem is that I'don't get any exception :)..

It simply wont do that part of code..and I can't figure out why!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top