I don't know how to make my program print from a RichTextBox. Please help if you can.
RichTextBox1
cmdPrint
mnuFilePrint
Thanks.
Printable View
I don't know how to make my program print from a RichTextBox. Please help if you can.
RichTextBox1
cmdPrint
mnuFilePrint
Thanks.
Code:'' print using the default printer
Printer.Print Me.RichTextBox1.Text
Thank you. But I get a runtime error 482 when I try to run it.
Do you have a default printer setup?
Use the SelPrint method.
Code:RichTextBox1.SelPrint (Printer.hDC)