Article ID: 153125
Article Last Modified on 6/29/2004
Sub Command1_click()
Dim PrinterFont As String '*
Printer.Print "" '* Initialize printer object's device
'* context
PrinterFont = Printer.Font '* Retrieve current font name
Printer.Font = "" '* Clear current font details
Printer.Font = PrinterFont '* Reset font information
Printer.fontsize = 36
Printer.fontbold = true
Printer.fontitalic = true
Printer.fontunderline = true
Printer.print "This is a test"
Printer.enddoc
End Sub
' If you have additional pages, use this syntax: Printer.NewPage Printer.Print "" '* Reinitialize printer object's device Printer.Font = "" '* Clear current font details Printer.Font = PrinterFont '* Reset font information Printer.FontSize = 36 Printer.CurrentY = 0 '* Reset to the top of the new page Printer.Print "This is page two" Printer.EndDoc
Sub Command1_click()
Printer.Fontsize = 36
Printer.Fontbold = true
Printer.Fontitalic = true
Printer.Fontunderline = true
Printer.Print "This is a test"
Printer.Enddoc
End Sub
125696 : StartPage/EndPage Resets Printer DC Attributes in Windows95
Keywords: kbbug kbprint kbpending KB153125