how to read rtf file in webBrowser control?
Posted on 2002-07-19
I've got a small app (both Access 2000 and VB6) that uses a web Browser control to navigate to a variety of sites. I then parse the table info or text from the html and populate an Access table.
My problem is that one site that I need ends up delivering an rtf file. My web Browser control loads the rtf file ok, but I can't seem to find the proper syntax, object properties, methods, etc. to then read the text.
Optionally, I could load the file to a RichTextBox control, but I can't seem to make the .LoadFile method of the RichTextBox control find the file on the internet site.
note: I've already tried "webBrowser.document.documentElement.innerHtml" or innerText or just "webBrowser.document.body.innerText" and gotten the error message:
"Object doesn't support this property or method."
It seems that once the rtf file is loaded, all of the normal webBrowser.document properties and methods are invalid.