MSHTML

  • Thread starter Thread starter Ching-Lung
  • Start date Start date
C

Ching-Lung

Hi,

Does anyone know how to set/retrieve a value of a <TD>
element through MSHTML in C#?

Please advice, thanks!
-CL
 
Ching-Lung,

If you set a reference to the Microsoft.mshtml interop assembly (it
should be listed under the .NET tab when you add a reference), you will have
access to the IHTMLTableCell interface, which you can use with the
IHTMLTableRow interface, etc, etc.

Hope this helps.
 
Nicholas,

Any idea how to use those interfaces?

IHTMLDocument3 doc = (IHTMLDocument3)
axWebBrowser1.Document;
IHTMLElementCollection col = doc.getElementsByName
("fName");
IHTMLTableRow row = (IHTMLTableRow)col.item("fName", 0);

It always complains on the last statement. It says that
unable to do the convertion.

Also, I don't see a method/property on IHTMLTable... that
can grab the value of <TD>.

Please help.

Thanks,
-CL


-----Original Message-----
Ching-Lung,

If you set a reference to the Microsoft.mshtml interop assembly (it
should be listed under the .NET tab when you add a reference), you will have
access to the IHTMLTableCell interface, which you can use with the
IHTMLTableRow interface, etc, etc.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Ching-Lung said:
Hi,

Does anyone know how to set/retrieve a value of a <TD>
element through MSHTML in C#?

Please advice, thanks!
-CL
 

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

Similar Threads


Back
Top