CodeItBetter Programming Another VB Programming Blog

How to print the contents of Rich Text Box

Posted on January 5, 2009
1
2
3
4
5
6
7
8
9
10
11
12
'Controls - How to print the contents of Rich Text Box

Option Explicit
 
'The following code will print the contents of RichTextBox. But, it will not print
'any pictures that found inside the RichTextBox.

'Add a Command Button and a RichTextBox to your form

Private Sub Command1_Click()
    Call RichTextBox1.SelPrint(Printer.hDC)
End Sub
Filed under: Controls Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.