Article ID: 166908
Article Last Modified on 12/10/2003
Printer.Scale (x1,y1) - (x2, y2)
170365 : INFO: Visual Studio 97 Service Packs - What, Where, and Why
171554 : INFO: Visual Basic 5.0 Fixes in Visual Studio 97 Service Pack 2
Private Sub Command1_Click()
With Printer
.ScaleMode = vbUser 'Create a user-defined custom
.ScaleWidth = 8.5 'scale for 8.5" x 11" paper.
.ScaleHeight = 11
Printer.Circle (4.25, 5.5), 1 'Print a circle in the
'center of the page.
.CurrentX = 3.5 'Print the text at user-
.CurrentY = 2 'defined coordinates x = 3.5
Printer.Print "This is a test" 'and y = 2.
.EndDoc 'End the print job.
Debug.Print Printer.ScaleMode 'Display 0 (vbUser).
End With
End Sub
Private Sub Command1_Click()
With Printer
Printer.Scale (0, 0)-(8.5, 11) 'Create a user-defined custom
'scale for 8.5" x 11" paper.
Printer.Circle (4.25, 5.5), 1 'Print a circle in the
'center of the page.
.CurrentX = 3.5 'Print the text at user-
.CurrentY = 2 'defined coordinates x = 3.5
Printer.Print "This is a test" 'and y = 2.
.EndDoc 'End the print job.
End With
End Sub
Additional query words: pset line printing
Keywords: kbbug kbfix kbvbp500sp2fix kbprint kbvs97sp2fix KB166908