[EMAIL PROTECTED] wrote: > So, can one of you gurus tell me: > Is there any way I can read a file directly into a tWebBrowser? Hi Chris,
you can just use: WebBrowser1.Navigate( 'file:\\d:\file.html' ); to load any html into a TWebBrowser, is that what you mean? > > OR > Is there a way to parse html into plain text (simple & cheap*) > > Once you have the document loaded you have access to the entire HTML document, via the OleObject.Document property of TWebBrowser, and you can grab certain tags, etc. For example. This snippet, which grabs the 1st TABLE tag and reads row(2) cell (0) from it. var ovTable :OleVariant; s :String; begin ovTable := WebBrowser1.OleObject.Document.All.Tags( 'TABLE' ).item(1); s := Trim(ovTable.Rows.Item(2).Cells.Item(0).InnerText); _______________________________________________ Delphi mailing list -> Delphi@elists.org http://lists.elists.org/cgi-bin/mailman/listinfo/delphi