kibzama Level: Big Cheese Registered: 05-09-2005 Posts: 28
RTF Formats
I have used the Rich Textbox in my application, its working very well. I can now embade excel ranges, images etc on the rtfText. Now what defeats me is to print the same. When I print, I only get the text content without the format. Please help. My part of code is like this
dim prt as Printer
prt.Print rtfText.Text
prt.EndDoc
Kibzama
05-09-2005 at 10:32 AM
|
Dave Green Level: Professor Registered: 20-10-2005 Posts: 90
Re: RTF Formats
Hi, the Rich Text box has TWO text properties:
.text
and
.textRTF
the latter is the one that contains the formatting information.
so your code should read:
dim prt as Printer
prt.Print rtfText.TextRTF
prt.EndDoc
Hope this helps
Dave
____________________________
While Breath.Count>0
Live(gbRelax)
Wend