-
In my app, I've got a rich text box, used only to display the contents of .rtf files (Locked = True; user can't edit it). These docs were originally created in MS Word 97/2000, then saved in rtf format. To double-check, I would view the rtf file in WordPad, and everything looks peachy.
In my VB program, I load the RTB with the following statement:
Code:
rtbRTFFile.LoadFile strSelectedFile, rtfRTF
For the most part, the files display fine; but sometimes parts of the document do not display exactly as intended: for example, it seems like an extra tab is randomly inserted in front of a paragraph (where other paragraphs display just fine), another example is that in some instances a bulleted list does not display exactly as intended. And forget about displaying tables - they display as a jumbled mess, so I convert them to text in Word before saving the doc as rtf.
In any event, I can live with these quirks if need be, but if something can be done to improve this situation, I'd certainly like to hear about it.
-
I think it's because the richtextbox that comes with vb is crippled. Try this.
-
I Do Belive you can set the default TAB size .
-
Heres some more info . The Following is a partial header from an rtf Doc .
{\rtf1\ansi\ansicpg1252\deff0\*deftab720*{\fonttbl{\f0\fswiss MS Sans Serif;}{\f1\froman\fcharset2 Symbol;}{\f2\fswiss Abadi MT Condensed;}{\f3\fnil Arial;}{\f4\fnil\fcharset1 Arial;}{\f5\fswiss Abadi MT Condensed;}{\f6\fmodern Courier New;}{\f7\froman Times New Roman;}}
{\colortbl\red0\green0\blue0;\red255\green0\blue0;\red0\green0\blue255;\red128\green0\blue255;}
\deflang1033\pard\plain\f4\fs16\cf2\b
\par NickName:\tab \plain\f2\fs20\cf1 testin\plain\f2\fs20\cf1\b g\plain\f3\fs20
\par }
* sets the Default TAB size I *Believe*
[]P