yes, i want to know how i can take textbox text from a form and put it all into notepad so it is ready to print or even open in a seperate form ready to print, either one will work.
Printable View
yes, i want to know how i can take textbox text from a form and put it all into notepad so it is ready to print or even open in a seperate form ready to print, either one will work.
Do you want to print the textbox contents or save the contents
i want to beable to print them...
Lookup the documentation of Printer object and Printers Collection in MSDN.
The easiest way to print in VB is:
VB Code:
Printer.Print Text1.Text Printer.EndDoc
But, you may want your printouts to be neatly formatted. Do a google search for "VB6 Printing". You'll get many good tutorials.
If you want advanced WYSIWYG formatting, like MS-Word, you'll need to use the RichTextBox. Do a google search for "RichTextBox Printing"