Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading a RTF file

Status
Not open for further replies.

indiaa123

Programmer
Aug 27, 2003
25
US
I want to read a RTF file and convert the contents into a different format.

While reading a RTF we encounter texts,boxes,frames,tables etc..

1) How to find out the exact position of each word using VB or VBA.

2) How to get the properties of each words/boxes/lines/tables etc.

3)We can add text in to a box. In such a case how can i get the properties sucha s position/font etc using VB/VBA

 
Have you tried using Save as command (F12) and then saving it as a DOC File. Then opening it up as a DOC file and then edit as you want.
 
This is totally a different format file and is not available in the save as drop down list.

The only possiblilty that comes to my mind is read the RTF line by line and get the properties and convert back to the required format.

 
RTF to me is a Rich Text Format File and a word processing program should be able to open it and then save it in a different format
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top