print5

 

Print Text


Print Text


Preparations

Add 1 Command Button to your form.


Form Code


Private Sub Command1_Click()
' the following example will print hello on the form
Printer.Print "hello"
' use the EndDoc command if this text is the last thing you want
' to print on the paper
Printer.EndDoc
End Sub