Say i have a text box with text it in. Next to it i have a command button that says "print" what i want to do is when you click the button, it prints the information in the text box. How would i do that?
-Steve
Printable View
Say i have a text box with text it in. Next to it i have a command button that says "print" what i want to do is when you click the button, it prints the information in the text box. How would i do that?
-Steve
This will do that:
Code:Printer.Print Text1.Text 'print it
Printer.EndDoc 'Tell the printer that the end is reached
Wow thats it. thanks for the code.
-Steve
If you want, you can set the position of the text with the CurrentX and CurrentY properties.
If I use similar code to combine several textboxes into one String and then print that string... How can I force the string to WordWrap on the output?
For example:
------------------------------------------------------
Dim strTest as String
strTest = Text1 & Text2 & Text3 & Text4 'Etc...
Printer.Print strTest
Printer.EndDoc
------------------------------------------------------
This way... The output is on one line which prints off the right side of the page. Can I WordWrap?
Thanks!
Kevin