how can I print the contents of a text/richtextbox to a printer hardware? tnx!:D
Printable View
how can I print the contents of a text/richtextbox to a printer hardware? tnx!:D
In a nutshell it's as simple as:
However, line wrapping, new pages, etc will need to be calculated.Code:Printer.Print Text1.Text
Printer.EndDoc
I believe we have samples of advanced printing posted so try to search.
Thank you very much for the quick help..:D its very appreciated..:D
Or, for the richtextbox you can use a simple one linerFor a standard textbox, you would need to use RhinoBull's code.Code:Call RichTextBox1.SelPrint(Printer.hdc)