Be careful here.
First of all, the user must have a default printer installed in her/his machine, otherwise the Printer object is nothing.
The Print method prints starting at the CurrentX,CurrentY coordinates (default 0,0 maybe you want to change those). If the text box is set to word wrap, the Text property is a long string without newlines, thus can easily go outside the page border. Finally, you have to invoke the Printer.EndDoc method to print the page after you are done with all the printing. To delete the print job, just call Printer.KillDoc.
More info in the "Printer Object, Printers Collection"
VB/MSDN help page
Marco
Quote:
quote:Originally posted by Yehuda
The Printer hasa hidden function print that works as follows:
Printer.Print textBox1.text
|