In previous lessons, we have only written programs that send output to the screen and not the printer. In this new lesson, we will learn how to send an output to the printer and get it printed. Sending output to the printer is a simple task in Visual Basic, it involves the use of the Printer object and the print method. The standard code of sending an output to the printer and get it printed out is as follows:
Private Sub Form_Load()
Printer.Print "Welcome to Visual Basic"
End Sub
For more details, refer to
http://www.vbtutor.net/lesson39.html
No comments:
Post a Comment