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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RTF Files with tables do not format correctly

Status
Not open for further replies.

VicSpainhower

Programmer
Sep 9, 2000
5
US
I have a vb6 program that reads an rtf file into a RichTextBox. The rtf file is simply a word table. The problem is that it ignores the boundries of the column and wraps the text either onto the next line (starting in col1 for the last col) or the text will just format into the adjacent column. I have been searching all day so I'm hoping someone has a solution for this.

Thanks,

Vic
 
Having never had this problem seeing some of your code would be good.

-I hate Microsoft!
-Forever and always forward.
 
Not much code required but maybe the rtf file that I'm using would help. I'll attach the file;

Steps to re-create:

1. create a project
2. Create a form
3. add a RichTextBox control
4. set the filename property to the attached file
5. run the program

The rtf file is at
 
I actually did it a different way (maybe because of the strange whay it deals with it), but that was quite awhile ago. I stopped using RTBs. Of the projects I did use it I just noticed I didn't have any text wrap so that was why I never ran into the problem. :) I've looked at what I could and (while I could be wrong) it seems to be some default formatting that rtf reader programs (word/wordpad) do that isn't actually a part of the actual rtf line.

-I hate Microsoft!
-Forever and always forward.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top