473,385 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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

Aug 16 '06 #1
2 1476
Alfa & Omega,

What is the exception that you are getting?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Alfa & Omega" <al*****@gmail.comwrote in message
news:eb**********@ss408.t-com.hr...
>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



Aug 16 '06 #2
Problem is that I'don't get any exception :)..

It simply wont do that part of code..and I can't figure out why!!
Aug 16 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Hal Vaughan | last post by:
I have a script used to find and run Java on a Windows system.  It worked fine on original tests (on a Windows XP system).  It's now running on a Windows 2000 (sp3) system, and it won't work -- the...
1
by: Jim | last post by:
Hey guys I DESPERATLY need some help with this small javascript i have on this website. All that it's supposed to do is change the button image once it's pressed but alas... I copy-pasted the code...
5
by: LRW | last post by:
(Sorry if this is a repost...my newsreader keeps crashing on the posting--I don't know if the message going out or not) For some reason this javascript just won't work in Firefox. It works fine...
4
by: Mark | last post by:
the Following bit of code doesn't work. It seems to respond to the second, starting with 'add iif statement for Good Practice', but not to the first, starting 'add iif statement for archived' ...
4
by: Chad | last post by:
I have a link (.ascx) and that generates an Add form on that page. The autopostback dropdown is within a "If Not IsPostBack Then" statement. The form that is created is all via static html in the...
7
by: simon | last post by:
I have simple html(aspx) page, but vertical height won't work. Even if i had set the height of a table=100%, the table is not 100% height. I spend a lot of time(my real page is more...
3
by: musosdev | last post by:
Hi guys Okay, I've setup my projects to open and compile fine in VS2005 using FPSE and remote web, but it's *really* slow. So I thought I'd have a go at doing it the normal way, by loading from...
7
by: Eran.Yasso | last post by:
Hi, I have project that automate excel(using Excel COM) which works fine in my home. I took the project from my home to work and tried to build the project but it won't built. I get error "The...
4
by: z55177 | last post by:
My domain: http://www.esthevision.cz/ This is the cause of my problem. The template is supposed to look somewhat like this: PINK STRIPE http://themebot.com/website-templates/ht... I created an...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.