Print Text In Specific Position

Preparations

Add 1 Command Button to your form.

Form Code

Private Sub Command1_Click()
' this example will print "hello" in the coordinates 100, 300
    Printer.CurrentX = 100
    Printer.CurrentY = 300
    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

Go Back