RichText won't keep the formats? 
Author Message
 RichText won't keep the formats?

I have created a small RTF file using WordPad and I can easily load it into
a VB Richtextbox control. I want to be able to edit my RTF file using code. The
problem is that the 'richtext' will not hold the current formatting even if I
only perform something simple like inserting a character in the middle of a word.

Example:
(Before editting)

My Name         <----- 18pt
My Address      <----- 18pt
My Phone        <----- 18pt

Hello to everyone in the world. <------ 12pt

==== Procedure: insert 'zz' into 'everyone'
(After editting)

My Name         <----- 18pt
My Address      <----- 18pt
My Phone        <----- 18pt

Hello to everyzzone in the world.       <------ 18pt****

It all becomes 18pt!  Any ideas?
Thanks for the help.

Marty



Tue, 10 Apr 2001 03:00:00 GMT  
 RichText won't keep the formats?
You should use the Code

RichTextBox1.SaveFile filename, rtfRTF

This should save your file with all the formatting.
___________________________________
TekLar Innovations - http://www.teklar.com/
Virtual Insanity Software - http://www.teklar.com/insanity/
TekLar Developers Center - http://www.teklar.com/developer/
Quest Internet Search - http://www.teklar.com/quest/



Wed, 11 Apr 2001 03:00:00 GMT  
 RichText won't keep the formats?

Thanks for the help but my problem not saving the text and formatting. The
problem is that after I make the changes, it shows-up incorrectly in the
RichText control. All of the later text takes on the formatting of the previous
text.

Quote:
>You should use the Code

>RichTextBox1.SaveFile filename, rtfRTF

>This should save your file with all the formatting.
>___________________________________
>TekLar Innovations - http://www.teklar.com/
>Virtual Insanity Software - http://www.teklar.com/insanity/
>TekLar Developers Center - http://www.teklar.com/developer/
>Quest Internet Search - http://www.teklar.com/quest/



Wed, 11 Apr 2001 03:00:00 GMT  
 RichText won't keep the formats?
That's the way it works. Can't help further without seeing the code you use
to format your text edits.

Quote:


(Rpent001) says:

>Thanks for the help but my problem not saving the text and formatting. The
>problem is that after I make the changes, it shows-up incorrectly in the
>RichText control. All of the later text takes on the formatting of the
previous
>text.

>>You should use the Code

>>RichTextBox1.SaveFile filename, rtfRTF

>>This should save your file with all the formatting.
>>___________________________________
>>TekLar Innovations - http://www.teklar.com/
>>Virtual Insanity Software - http://www.teklar.com/insanity/
>>TekLar Developers Center - http://www.teklar.com/developer/
>>Quest Internet Search - http://www.teklar.com/quest/



Fri, 13 Apr 2001 03:00:00 GMT  
 RichText won't keep the formats?
FWIW, I have been using the RTF control for a couple of months and have found
it incredibly buggy. I would like to know if there's a later, cleaner version
of the control available. Can't find anything on MS website.

Andy Rigby



Sat, 14 Apr 2001 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. 'keep track of formatting' option

2. Richtext Box won't load in VB 6

3. Image control won't keep picture size

4. Image control won't keep picture size

5. KeepTogether won't keep together

6. Format$() won't internationalize?

7. Email won't always format properly

8. MSHFlexGrid won't format $ field

9. MSINET.OCX *still* won't register, and now IE4 won't install

10. Different results Format() Win XP and Win NT

11. Typing '*' character in Richtext control

12. print from RichText Box in Win 2000

 

 
Powered by phpBB® Forum Software