|
-
Nov 12th, 2000, 11:32 AM
#1
Thread Starter
PowerPoster
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.
"It's cold gin time again ..."
Check out my website here.
-
Nov 12th, 2000, 12:33 PM
#2
Fanatic Member
I think it's because the richtextbox that comes with vb is crippled. Try this.
-
Nov 12th, 2000, 12:59 PM
#3
Hyperactive Member
I Do Belive you can set the default TAB size .
Visual Basic 6 SP4 on win98se
QUIT THE RAT RACE BECAUSE YOUR MESSING THE WORLD UP !!!!!
-
Nov 12th, 2000, 01:04 PM
#4
Hyperactive Member
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
Visual Basic 6 SP4 on win98se
QUIT THE RAT RACE BECAUSE YOUR MESSING THE WORLD UP !!!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|