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 Shapes)Next Topic (vb file print) New Topic New Poll Post Reply
AndreaVB Forum : Printing : printing RichTextBox Formatted text
Poster Message
nirmal
Level: Guest


icon printing RichTextBox Formatted text

how do i can print Formatted text i.e. Bold, underline, centre align text from RichTextBox.

i am using this statement which is not working

Printer.print (textbox.SelRTFText)

14-10-2003 at 12:56 PM
| Quote Reply
ahmad
Level: Master

Registered: 03-02-2003
Posts: 120
icon Re: printing RichTextBox Formatted text

'Name of Rich Text Box Control = rtf
'Write this code under Print Button


rtf.SelPrint Printer.hDC
rtf.SelStart = lastposition
rtf.SelLength = lastSelection

____________________________
@#@#@

17-01-2004 at 10:15 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : Printing : printing RichTextBox Formatted text
Previous Topic (Printing Shapes)Next Topic (vb file print) 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