|
-
Sep 21st, 2000, 02:26 PM
#1
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
-
Sep 21st, 2000, 02:28 PM
#2
Fanatic Member
This will do that:
Code:
Printer.Print Text1.Text 'print it
Printer.EndDoc 'Tell the printer that the end is reached
-
Sep 21st, 2000, 02:56 PM
#3
Wow thats it. thanks for the code.
-Steve
-
Sep 21st, 2000, 03:06 PM
#4
If you want, you can set the position of the text with the CurrentX and CurrentY properties.
-
Sep 21st, 2000, 04:13 PM
#5
Lively Member
Printer.Print
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
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
|