Article ID: 177740
Article Last Modified on 11/18/2003
Option Explicit
Dim intCounter As Integer
Private Sub Form_Load()
Command1.Caption = "Demonstrate the Problem"
Command2.Caption = "Demonstrate the Expected Behavior"
End Sub
Private Sub Command1_Click()
'This button demonstrates the problem.
Printer.Scale (0, 250)-(140, 0) 'Y-Coordinate is descending
Printer.Print " "
For intCounter = 1 To 100
Printer.Print "Item #" & intCounter
Next intCounter
MsgBox "# Pages : " & Printer.Page
Printer.EndDoc
End Sub
Private Sub Command2_Click()
'This button demonstrates the expected behavior
Printer.Scale (0, 0)-(140, 250) 'Y-Coordinate is ascending
Printer.Print " "
For intCounter = 1 To 100
Printer.Print "Item #" & intCounter
Next intCounter
MsgBox "# Pages : " & Printer.Page
Printer.EndDoc
End Sub
Additional query words: print job blank pages kbVBp500bug kbVBp600fix kbVBp kbdsd kbDSupport kbPrinting (c) Microsoft Corporation 1997, All Rights Reserved. Contributions by Arsenio Locsin, Microsoft Corporation
Keywords: kbbug kbfix KB177740