borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Printing in DOS with Different Fonts)Next Topic (Setting default paper Size in 2003 & XP) New Topic New Poll Post Reply
AndreaVB Forum : Printing : RTF Formats
Poster Message
kibzama
Level: Big Cheese


Registered: 05-09-2005
Posts: 28

icon 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
View Profile Send Email to User Show All Posts | Quote Reply
Dave Green
Level: Professor


Registered: 20-10-2005
Posts: 90
icon 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

15-11-2005 at 12:20 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Printing : RTF Formats
Previous Topic (Printing in DOS with Different Fonts)Next Topic (Setting default paper Size in 2003 & XP) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder