printing a text box

How would i go about printing the contents of a textbox named txtmain
hessAsked:
Who is Participating?
 
watyConnect With a Mentor Commented:
printer.print tbYourTextbox.Text

 Print eventually some other textbox


printer.enddocument ' *** Finish the printing document and spool it
0
 
kamallCommented:
Use the printer object to print the text as shown below:

Printer.Print MyString

MyString is the string to print. Note that the printer object does not wrap text. Therefore, you must read the characters one by one from the text box and use the TextWidth function and compare it with the Printer.ScaleWidth to determine if the line fits on the page width. If not, start a new line.

Hope that helps.
0
 
hessAuthor Commented:
This does answer my question but if you could tell me how to find out when the printer is finished i'll give you 15 more pts
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

 
watyCommented:
printer.print tbYourTextbox.Text

 Print eventually some other textbox


printer.enddocument ' *** Finish the printing document and spool it
0
 
hessAuthor Commented:
i was hoping that kamall would answer this cause i need to give him some points
0
 
watyCommented:
One solution is giving 15 points to kamall, and 15 points to me. ;)
0
 
hessAuthor Commented:
I guess i can give you 15 points so propose answer and they are yours
0
 
kamallCommented:
hess,
Sorry for being away for a few days.
I am seeing that you rejected my answer (that was really the answer to your original question) just because you put another question!.
Anyway, if you would like to give me some points, thanks. If not, there is no problem.
Regards.
0
 
hessAuthor Commented:
shure, I'll give you some points. There will shortly be a question called "15pts for karmall" and i'll only let you answer it ok.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.