|
-
Jan 20th, 2007, 02:19 AM
#1
Thread Starter
Addicted Member
Text to Notepad
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.
-
Jan 20th, 2007, 02:22 AM
#2
Re: Text to Notepad
Do you want to print the textbox contents or save the contents
Please mark you thread resolved using the Thread Tools as shown
-
Jan 20th, 2007, 02:46 AM
#3
Thread Starter
Addicted Member
Re: Text to Notepad
i want to beable to print them...
-
Jan 20th, 2007, 04:26 AM
#4
Re: Text to Notepad
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"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|