Formatted text from rich text box to Word 
Author Message
 Formatted text from rich text box to Word

Does anyone know of a way to programmatically move formatted text from a
Visual Basic rich text box control in a VB application to a Word document
using the Word object model?

I have spent several hours trying to get this to happen but so far, no luck.
The only thing that comes close is if I use the rich text box's SaveFile
method to write the text to a file, and then use the Word Range object's
InsertFile method to read in the file.  But this seems like a cumbersome way
to do this.  It seems as though there ought to be a simple way to transfer
the text from the VB application to the Word document while retaining all of
the formatting (bullited lists, bold, italic, etc.).

Thanks!!!



Thu, 14 Nov 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. help: formatting rich text box/text box

2. Rich Text Format of Selected Microsoft Word Text

3. Copying text in .rtf format from one rich text box to another

4. Formatting text in a rich text box

5. Formatting Lines of Text in a Rich Text Box Control

6. Truncating rich text box text & keeping formatting

7. Rich Text Box: Can I remove text and keep multicolored text

8. Rich Text Box / Word box etc that displays tables etc

9. Colour Text Box/Class Wrapper for Rich Text Box

10. Newbie question: Rich Text Box vs. Text Box

11. Rich Text Box vs. Text Box Scrolling

12. Rich Text Box or text box control

 

 
Powered by phpBB® Forum Software