469,581 Members | 1,984 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,581 developers. It's quick & easy.

Want to use msHTML.HTMLDocumentClass

Hi,
I just stepped into C#. I am facing one problem. Here is the scenario. I am
posting some data to one website (https site). It returns me response HTML.
I want to parse this HTML and want to look for some specific tags. To
achieve the same, I wanted to use MSHTMLs HTMLDocumentClass Interface. I
dont know how to use it in C#.
I am using .NET framework 1.1.
For posting the data, I am using XMLHTTP class.

Any help is highly appreciated.

Thanks
Atul
Nov 15 '05 #1
10 43637
Dnia 2003-11-13 12:53, Użytkownik Atul napisał:
Hi,
I just stepped into C#. I am facing one problem. Here is the scenario. I am
posting some data to one website (https site). It returns me response HTML.
I want to parse this HTML and want to look for some specific tags. To
achieve the same, I wanted to use MSHTMLs HTMLDocumentClass Interface. I
dont know how to use it in C#.
I am using .NET framework 1.1.
For posting the data, I am using XMLHTTP class.

Any help is highly appreciated.

Thanks
Atul

Hi,

First you should add refernece to your project - Microsoft.mshtml,
then by namespace "mshtml" you will have access HTMLDocumentClass

M.S

Nov 15 '05 #2
Hi,
I did the way you just told. Let me clear about the problem.
I am having one HTML text stored in a string say "strResponseHTML" variable.
The code which I am trying to use is as follows:

private void button1_Click(object sender, System.EventArgs e)
{
HTMLDocument htmlDoc = new HTMLDocumentClass();
IHTMLDocument2 doc = (IHTMLDocument2)new HTMLDocumentClass();
try
{
string strResponse = getHtml();
htmlDoc.write(strResponse);
if (null != htmlDoc)
{
MessageBox.Show(htmlDoc.all.length.ToString());
}
richTextBox1.Text= htmlDoc.toString();
}
catch(Exception ex)
{
MessageBox.Show(ex.Message + "\n"+ex.StackTrace);
}
}

Now upon seeing the code, what actually I am trying to do is that I want to
parse the response HTML to look for some objects with the values. Those
values I would like to compare.
We use MSXML2.dll to parse the XML document using XMLDOM, similary we "can"
use MSHTML.dll to parse the HTML document using htmlDocument object. But how
to load the strResponseHTML into HTMLDocument object, that I want to know.
If any body could help me out, highly appreaciated.
Thanks
Atul

"Marcin Smółka" <ze***@eti.pg.gda.pl> wrote in message
news:eo**************@TK2MSFTNGP09.phx.gbl...
Dnia 2003-11-13 12:53, Użytkownik Atul napisał:
Hi,
I just stepped into C#. I am facing one problem. Here is the scenario. I am posting some data to one website (https site). It returns me response HTML. I want to parse this HTML and want to look for some specific tags. To
achieve the same, I wanted to use MSHTMLs HTMLDocumentClass Interface. I
dont know how to use it in C#.
I am using .NET framework 1.1.
For posting the data, I am using XMLHTTP class.

Any help is highly appreciated.

Thanks
Atul

Hi,

First you should add refernece to your project - Microsoft.mshtml,
then by namespace "mshtml" you will have access HTMLDocumentClass

M.S

Nov 15 '05 #3
Atul,

In order to do this, you will have to use one of the IPersist interfaces
that HTMLDocument implements. You can use the IPersistFile interface,
saving your string to a file and then loading it that way, or you could use
the IPersistMemory interface, placing your string into unmanaged memory and
then passing the pointer to that string in memory.

However, if you have relative URLs in this document which you need to
have resolved correctly, then this will not work. The reason is that the
class doesn't know about where the document came from, and can not resolve
these accordingly. In this case, you will have to create an implementation
of IMoniker (which is represented in the System.Runtime.InteropServices
namespace with a name of UCOMIMoniker).

When you create this implementation, you have to implement the
BindToStorage method so that it will return an IStream implementation (the
COM interface) which is asked for eventually. This IStream will stream the
string that you had back to MSHTML.

Also, you will want to implement the GetDisplayName method of the
UCOMIMoniker interface so that it returns the url that this string was
downloaded from.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Atul" <py*****@hotmail.com> wrote in message
news:uA**************@tk2msftngp13.phx.gbl...
Hi,
I did the way you just told. Let me clear about the problem.
I am having one HTML text stored in a string say "strResponseHTML" variable. The code which I am trying to use is as follows:

private void button1_Click(object sender, System.EventArgs e)
{
HTMLDocument htmlDoc = new HTMLDocumentClass();
IHTMLDocument2 doc = (IHTMLDocument2)new HTMLDocumentClass();
try
{
string strResponse = getHtml();
htmlDoc.write(strResponse);
if (null != htmlDoc)
{
MessageBox.Show(htmlDoc.all.length.ToString());
}
richTextBox1.Text= htmlDoc.toString();
}
catch(Exception ex)
{
MessageBox.Show(ex.Message + "\n"+ex.StackTrace);
}
}

Now upon seeing the code, what actually I am trying to do is that I want to parse the response HTML to look for some objects with the values. Those
values I would like to compare.
We use MSXML2.dll to parse the XML document using XMLDOM, similary we "can" use MSHTML.dll to parse the HTML document using htmlDocument object. But how to load the strResponseHTML into HTMLDocument object, that I want to know.
If any body could help me out, highly appreaciated.
Thanks
Atul

"Marcin Smółka" <ze***@eti.pg.gda.pl> wrote in message
news:eo**************@TK2MSFTNGP09.phx.gbl...
Dnia 2003-11-13 12:53, Użytkownik Atul napisał:
Hi,
I just stepped into C#. I am facing one problem. Here is the scenario. I
am
posting some data to one website (https site). It returns me response HTML. I want to parse this HTML and want to look for some specific tags. To
achieve the same, I wanted to use MSHTMLs HTMLDocumentClass Interface.

I dont know how to use it in C#.
I am using .NET framework 1.1.
For posting the data, I am using XMLHTTP class.

Any help is highly appreciated.

Thanks
Atul

Hi,

First you should add refernece to your project - Microsoft.mshtml,
then by namespace "mshtml" you will have access HTMLDocumentClass

M.S


Nov 15 '05 #4
Hi Atul,
I'm using this:

object[] oPageText = {sWebPage};
myDoc = new HTMLDocumentClass();
IHTMLDocument2 oMyDoc = (IHTMLDocument2)myDoc;
oMyDoc.write(oPageText);

This works fine. Of course you have to put this in try/catch block in
order the page is not well formated.

Hope that helps
Sunny
In article <uA**************@tk2msftngp13.phx.gbl>, py*****@hotmail.com
says...
Hi,
I did the way you just told. Let me clear about the problem.
I am having one HTML text stored in a string say "strResponseHTML" variable.
The code which I am trying to use is as follows:

private void button1_Click(object sender, System.EventArgs e)
{
HTMLDocument htmlDoc = new HTMLDocumentClass();
IHTMLDocument2 doc = (IHTMLDocument2)new HTMLDocumentClass();
try
{
string strResponse = getHtml();
htmlDoc.write(strResponse);
if (null != htmlDoc)
{
MessageBox.Show(htmlDoc.all.length.ToString());
}
richTextBox1.Text= htmlDoc.toString();
}
catch(Exception ex)
{
MessageBox.Show(ex.Message + "\n"+ex.StackTrace);
}
}

Now upon seeing the code, what actually I am trying to do is that I want to
parse the response HTML to look for some objects with the values. Those
values I would like to compare.
We use MSXML2.dll to parse the XML document using XMLDOM, similary we "can"
use MSHTML.dll to parse the HTML document using htmlDocument object. But how
to load the strResponseHTML into HTMLDocument object, that I want to know.
If any body could help me out, highly appreaciated.
Thanks
Atul

"Marcin Sm??ka" <ze***@eti.pg.gda.pl> wrote in message
news:eo**************@TK2MSFTNGP09.phx.gbl...
Dnia 2003-11-13 12:53, U?ytkownik Atul napisa?:
Hi,
I just stepped into C#. I am facing one problem. Here is the scenario. I am posting some data to one website (https site). It returns me response HTML. I want to parse this HTML and want to look for some specific tags. To
achieve the same, I wanted to use MSHTMLs HTMLDocumentClass Interface. I
dont know how to use it in C#.
I am using .NET framework 1.1.
For posting the data, I am using XMLHTTP class.

Any help is highly appreciated.

Thanks
Atul

Hi,

First you should add refernece to your project - Microsoft.mshtml,
then by namespace "mshtml" you will have access HTMLDocumentClass

M.S


Nov 15 '05 #5
it might be helpful to preparse the file to remove scripting as mentioned in
the following link
http://216.239.39.104/search?q=cache...hl=en&ie=UTF-8

I know it has helped me a great deal.
"Sunny" <su******@icebergwireless.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi Atul,
I'm using this:

object[] oPageText = {sWebPage};
myDoc = new HTMLDocumentClass();
IHTMLDocument2 oMyDoc = (IHTMLDocument2)myDoc;
oMyDoc.write(oPageText);

This works fine. Of course you have to put this in try/catch block in
order the page is not well formated.

Hope that helps
Sunny
In article <uA**************@tk2msftngp13.phx.gbl>, py*****@hotmail.com
says...
Hi,
I did the way you just told. Let me clear about the problem.
I am having one HTML text stored in a string say "strResponseHTML" variable. The code which I am trying to use is as follows:

private void button1_Click(object sender, System.EventArgs e)
{
HTMLDocument htmlDoc = new HTMLDocumentClass();
IHTMLDocument2 doc = (IHTMLDocument2)new HTMLDocumentClass();
try
{
string strResponse = getHtml();
htmlDoc.write(strResponse);
if (null != htmlDoc)
{
MessageBox.Show(htmlDoc.all.length.ToString());
}
richTextBox1.Text= htmlDoc.toString();
}
catch(Exception ex)
{
MessageBox.Show(ex.Message + "\n"+ex.StackTrace);
}
}

Now upon seeing the code, what actually I am trying to do is that I want to parse the response HTML to look for some objects with the values. Those
values I would like to compare.
We use MSXML2.dll to parse the XML document using XMLDOM, similary we "can" use MSHTML.dll to parse the HTML document using htmlDocument object. But how to load the strResponseHTML into HTMLDocument object, that I want to know. If any body could help me out, highly appreaciated.
Thanks
Atul

"Marcin Sm??ka" <ze***@eti.pg.gda.pl> wrote in message
news:eo**************@TK2MSFTNGP09.phx.gbl...
Dnia 2003-11-13 12:53, U?ytkownik Atul napisa?:

> Hi,
> I just stepped into C#. I am facing one problem. Here is the scenario. I
am
> posting some data to one website (https site). It returns me
response HTML.
> I want to parse this HTML and want to look for some specific tags.

To > achieve the same, I wanted to use MSHTMLs HTMLDocumentClass Interface. I > dont know how to use it in C#.
> I am using .NET framework 1.1.
> For posting the data, I am using XMLHTTP class.
>
> Any help is highly appreciated.
>
> Thanks
> Atul
>
>
Hi,

First you should add refernece to your project - Microsoft.mshtml,
then by namespace "mshtml" you will have access HTMLDocumentClass

M.S


Nov 15 '05 #6
Hi Hasani,
Thanks for the link.
Btw, do IHTMLDocument2.write(object[]) is executing the scripts?
I do not display the document, just load it.

It will be very helpful if you paste any link where I can read more
about it.

Thanks
Sunny

In article <sD*********************@twister.nyc.rr.com>, HJB417
@hotmail.c0m says...
it might be helpful to preparse the file to remove scripting as mentioned in
the following link
http://216.239.39.104/search?q=cache...hl=en&ie=UTF-8

I know it has helped me a great deal.
"Sunny" <su******@icebergwireless.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi Atul,
I'm using this:

object[] oPageText = {sWebPage};
myDoc = new HTMLDocumentClass();
IHTMLDocument2 oMyDoc = (IHTMLDocument2)myDoc;
oMyDoc.write(oPageText);

This works fine. Of course you have to put this in try/catch block in
order the page is not well formated.

Hope that helps
Sunny
In article <uA**************@tk2msftngp13.phx.gbl>, py*****@hotmail.com
says...
Hi,
I did the way you just told. Let me clear about the problem.
I am having one HTML text stored in a string say "strResponseHTML" variable. The code which I am trying to use is as follows:

private void button1_Click(object sender, System.EventArgs e)
{
HTMLDocument htmlDoc = new HTMLDocumentClass();
IHTMLDocument2 doc = (IHTMLDocument2)new HTMLDocumentClass();
try
{
string strResponse = getHtml();
htmlDoc.write(strResponse);
if (null != htmlDoc)
{
MessageBox.Show(htmlDoc.all.length.ToString());
}
richTextBox1.Text= htmlDoc.toString();
}
catch(Exception ex)
{
MessageBox.Show(ex.Message + "\n"+ex.StackTrace);
}
}

Now upon seeing the code, what actually I am trying to do is that I want to parse the response HTML to look for some objects with the values. Those
values I would like to compare.
We use MSXML2.dll to parse the XML document using XMLDOM, similary we "can" use MSHTML.dll to parse the HTML document using htmlDocument object. But how to load the strResponseHTML into HTMLDocument object, that I want to know. If any body could help me out, highly appreaciated.
Thanks
Atul

"Marcin Sm??ka" <ze***@eti.pg.gda.pl> wrote in message
news:eo**************@TK2MSFTNGP09.phx.gbl...
> Dnia 2003-11-13 12:53, U?ytkownik Atul napisa?:
>
> > Hi,
> > I just stepped into C#. I am facing one problem. Here is the scenario. I am
> > posting some data to one website (https site). It returns me response HTML.
> > I want to parse this HTML and want to look for some specific tags. To > > achieve the same, I wanted to use MSHTMLs HTMLDocumentClass Interface. I > > dont know how to use it in C#.
> > I am using .NET framework 1.1.
> > For posting the data, I am using XMLHTTP class.
> >
> > Any help is highly appreciated.
> >
> > Thanks
> > Atul
> >
> >
> Hi,
>
> First you should add refernece to your project - Microsoft.mshtml,
> then by namespace "mshtml" you will have access HTMLDocumentClass
>
> M.S
>


Nov 15 '05 #7
http://support.microsoft.com/default...NoWebContent=1

I was trying to do it as microsoft told me, but the solution @ vbcity was
the quickest and simplest to implement. Microsoft's solution will probably
have the page loaded and parsed faster though.

Also, there's a property of one of the HTMLElement classes called 'all' and
it will return all HTML elements contained inside the invoked HTMLElement

I use the IPersistFile 'method' to load the html code. I had problems when
using HTMLDocument.write.
http://groups.google.com/groups?hl=e...40cpmsftngxa08

and the code I use the load the documents pretty much looks like this

htmlDoc = new HTMLDocumentClass();

System.Runtime.InteropServices.UCOMIPersistFile pf =
(System.Runtime.InteropServices.UCOMIPersistFile)h tmlDoc;

pf.Load(htmlFilename, 0);

while(htmlDoc.body == null)

System.Windows.Forms.Application.DoEvents();

"Sunny" <su******@icebergwireless.com> wrote in message
news:uC**************@TK2MSFTNGP12.phx.gbl...
Hi Hasani,
Thanks for the link.
Btw, do IHTMLDocument2.write(object[]) is executing the scripts?
I do not display the document, just load it.

It will be very helpful if you paste any link where I can read more
about it.

Thanks
Sunny

In article <sD*********************@twister.nyc.rr.com>, HJB417
@hotmail.c0m says...
it might be helpful to preparse the file to remove scripting as mentioned in the following link
http://216.239.39.104/search?q=cache...hl=en&ie=UTF-8
I know it has helped me a great deal.
"Sunny" <su******@icebergwireless.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi Atul,
I'm using this:

object[] oPageText = {sWebPage};
myDoc = new HTMLDocumentClass();
IHTMLDocument2 oMyDoc = (IHTMLDocument2)myDoc;
oMyDoc.write(oPageText);

This works fine. Of course you have to put this in try/catch block in
order the page is not well formated.

Hope that helps
Sunny
In article <uA**************@tk2msftngp13.phx.gbl>, py*****@hotmail.com says...
> Hi,
> I did the way you just told. Let me clear about the problem.
> I am having one HTML text stored in a string say "strResponseHTML"

variable.
> The code which I am trying to use is as follows:
>
> private void button1_Click(object sender, System.EventArgs e)
> {
> HTMLDocument htmlDoc = new HTMLDocumentClass();
> IHTMLDocument2 doc = (IHTMLDocument2)new HTMLDocumentClass();
> try
> {
> string strResponse = getHtml();
> htmlDoc.write(strResponse);
> if (null != htmlDoc)
> {
> MessageBox.Show(htmlDoc.all.length.ToString());
> }
> richTextBox1.Text= htmlDoc.toString();
> }
> catch(Exception ex)
> {
> MessageBox.Show(ex.Message + "\n"+ex.StackTrace);
> }
> }
>
> Now upon seeing the code, what actually I am trying to do is that I want
to
> parse the response HTML to look for some objects with the values.
Those > values I would like to compare.
> We use MSXML2.dll to parse the XML document using XMLDOM, similary

we "can"
> use MSHTML.dll to parse the HTML document using htmlDocument object.
But how
> to load the strResponseHTML into HTMLDocument object, that I want to

know.
> If any body could help me out, highly appreaciated.
> Thanks
> Atul
>
> "Marcin Sm??ka" <ze***@eti.pg.gda.pl> wrote in message
> news:eo**************@TK2MSFTNGP09.phx.gbl...
> > Dnia 2003-11-13 12:53, U?ytkownik Atul napisa?:
> >
> > > Hi,
> > > I just stepped into C#. I am facing one problem. Here is the

scenario. I
> am
> > > posting some data to one website (https site). It returns me

response
> HTML.
> > > I want to parse this HTML and want to look for some specific
tags. To
> > > achieve the same, I wanted to use MSHTMLs HTMLDocumentClass

Interface. I
> > > dont know how to use it in C#.
> > > I am using .NET framework 1.1.
> > > For posting the data, I am using XMLHTTP class.
> > >
> > > Any help is highly appreciated.
> > >
> > > Thanks
> > > Atul
> > >
> > >
> > Hi,
> >
> > First you should add refernece to your project - Microsoft.mshtml,
> > then by namespace "mshtml" you will have access HTMLDocumentClass
> >
> > M.S
> >
>
>
>


Nov 15 '05 #8
hi Sunny,
Thanks for the response. Check the following code and see what am i missing
here?
private void button1_Click(object sender, System.EventArgs e)

{
HTMLDocument htmlDoc = new HTMLDocumentClass();
IHTMLDocument2 doc = (IHTMLDocument2)htmlDoc;

try
{
object[] oResponseHTML= (object[])getHtml();
MessageBox.Show(oResponseHTML.ToString());
doc.write(oResponseHTML);
if (null != doc)
{

MessageBox.Show(htmlDoc.all.length.ToString()+"\n" +doc.all.length.ToString()
);
}
richTextBox1.Text = "";

for(int i=0; i<doc.all.length;i++)
{
richTextBox1.Text = richTextBox1.Text + doc.all.item(null,i);
}

//richTextBox1.Text= htmlDoc.toString();
}
catch(Exception ex)
{
MessageBox.Show(ex.Message + "\n"+ex.StackTrace);
}
}

private object[] getHtml()
{
object[] strHTML=null;

XMLHTTP30Class xmlDoc = new XMLHTTP30Class();
xmlDoc.open("POST","http://www.google.com",false,"","");
xmlDoc.send(null);
if (xmlDoc.statusText.ToUpper() == "OK")
strHTML = (object[])xmlDoc.responseStream;
xmlDoc=null;
return strHTML;
}

Can you please correct this code?
Thanks
Atul
"Sunny" <su******@icebergwireless.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi Atul,
I'm using this:

object[] oPageText = {sWebPage};
myDoc = new HTMLDocumentClass();
IHTMLDocument2 oMyDoc = (IHTMLDocument2)myDoc;
oMyDoc.write(oPageText);

This works fine. Of course you have to put this in try/catch block in
order the page is not well formated.

Hope that helps
Sunny
In article <uA**************@tk2msftngp13.phx.gbl>, py*****@hotmail.com
says...
Hi,
I did the way you just told. Let me clear about the problem.
I am having one HTML text stored in a string say "strResponseHTML" variable. The code which I am trying to use is as follows:

private void button1_Click(object sender, System.EventArgs e)
{
HTMLDocument htmlDoc = new HTMLDocumentClass();
IHTMLDocument2 doc = (IHTMLDocument2)new HTMLDocumentClass();
try
{
string strResponse = getHtml();
htmlDoc.write(strResponse);
if (null != htmlDoc)
{
MessageBox.Show(htmlDoc.all.length.ToString());
}
richTextBox1.Text= htmlDoc.toString();
}
catch(Exception ex)
{
MessageBox.Show(ex.Message + "\n"+ex.StackTrace);
}
}

Now upon seeing the code, what actually I am trying to do is that I want to parse the response HTML to look for some objects with the values. Those
values I would like to compare.
We use MSXML2.dll to parse the XML document using XMLDOM, similary we "can" use MSHTML.dll to parse the HTML document using htmlDocument object. But how to load the strResponseHTML into HTMLDocument object, that I want to know. If any body could help me out, highly appreaciated.
Thanks
Atul

"Marcin Sm??ka" <ze***@eti.pg.gda.pl> wrote in message
news:eo**************@TK2MSFTNGP09.phx.gbl...
Dnia 2003-11-13 12:53, U?ytkownik Atul napisa?:

> Hi,
> I just stepped into C#. I am facing one problem. Here is the scenario. I
am
> posting some data to one website (https site). It returns me
response HTML.
> I want to parse this HTML and want to look for some specific tags.

To > achieve the same, I wanted to use MSHTMLs HTMLDocumentClass Interface. I > dont know how to use it in C#.
> I am using .NET framework 1.1.
> For posting the data, I am using XMLHTTP class.
>
> Any help is highly appreciated.
>
> Thanks
> Atul
>
>
Hi,

First you should add refernece to your project - Microsoft.mshtml,
then by namespace "mshtml" you will have access HTMLDocumentClass

M.S


Nov 15 '05 #9
Hi Atul,

In article <e7**************@tk2msftngp13.phx.gbl>, py*****@hotmail.com
says...
hi Sunny,
Thanks for the response. Check the following code and see what am i missing
here? <Snip>
private object[] getHtml()
{
object[] strHTML=null;

XMLHTTP30Class xmlDoc = new XMLHTTP30Class();
xmlDoc.open("POST","http://www.google.com",false,"","");
xmlDoc.send(null);
if (xmlDoc.statusText.ToUpper() == "OK")
strHTML = (object[])xmlDoc.responseStream;
xmlDoc=null;
return strHTML;
}

For reading the web page I'm using:

string sUrl = "http://www.google.com";
System.Net.WebClient source = new System.Net.WebClient();
StreamReader mr = null;

try
{
mr = new StreamReader(source.OpenRead(sUrl));
sWebPage = mr.ReadToEnd();
}
catch
{
oParent.PagesDone++;
return;
}
finally
{
if (mr != null)
mr.Close();
}
Now, in sWebPage you have the HTML document. And you can transform it in
object[]:

object[] oPageText = {sWebPage};

Sunny
Nov 15 '05 #10
Hi Hasani,
thanks for the response. I still do not want to use save/read a file, so
the solution in that link may help. The problem is (as always) that
myknowledge in C++ is not something I'm proud of :). I have posted a new
thread to ask for help with the translation.

Thanks
Sunny

In article <s7*********************@twister.nyc.rr.com>, HJB417
@hotmail.c0m says...
http://support.microsoft.com/default...NoWebContent=1

I was trying to do it as microsoft told me, but the solution @ vbcity was
the quickest and simplest to implement. Microsoft's solution will probably
have the page loaded and parsed faster though.

Also, there's a property of one of the HTMLElement classes called 'all' and
it will return all HTML elements contained inside the invoked HTMLElement

I use the IPersistFile 'method' to load the html code. I had problems when
using HTMLDocument.write.
http://groups.google.com/groups?hl=e...40cpmsftngxa08

and the code I use the load the documents pretty much looks like this

htmlDoc = new HTMLDocumentClass();

System.Runtime.InteropServices.UCOMIPersistFile pf =
(System.Runtime.InteropServices.UCOMIPersistFile)h tmlDoc;

pf.Load(htmlFilename, 0);

while(htmlDoc.body == null)

System.Windows.Forms.Application.DoEvents();

Nov 15 '05 #11

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Colin Foulkes | last post: by
10 posts views Thread by Sunny | last post: by
reply views Thread by Joshua Ellul | last post: by
reply views Thread by taminglis | last post: by
4 posts views Thread by Nikolay Petrov | last post: by
2 posts views Thread by Alfa & Omega | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.