RichText File displayed in RichTextBox

T

thomasp

Using VB2005 I am trying to display a .rft file in a richtextbox control.
The file contains an table and some other text. The file opens without a
problem in MS Word, but when I display it in the richtextbox control, the
text in the table is not in the correct columns. The text is shifted to the
right and extends outside the table.

Any Ideas

Also, can the PrintPreview control be used to view the .rtf file? I have
several reports that are .rtf files that are built by code and just want a
way for the user to view the created files.


Thanks

Thomas
 
H

Herfried K. Wagner [MVP]

Using VB2005 I am trying to display a .rft file in a richtextbox control.
The file contains an table and some other text. The file opens without a
problem in MS Word, but when I display it in the richtextbox control, the
text in the table is not in the correct columns. The text is shifted to
the
right and extends outside the table.

Note that the richtextbox control doesn't provide full support for the
current RTF specification. It only supports a subset defined in an older
version of the specification, and it doesn't support tables.
Also, can the PrintPreview control be used to view the .rtf file?

No, that's not supported out of the box.
 

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

Top