GFSelectPrinter/Mfrm.frm
VERSION 5.00
Begin VB.Form Mfrm
Caption = "GFSPSelectPrinter"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 'Windows‑Standard
Begin VB.PictureBox Picture1
AutoSize = ‑1 'True
Height = 540
Left = 60
Picture = "Mfrm.frx":0000
ScaleHeight = 480
ScaleWidth = 480
TabIndex = 1
Top = 120
Width = 540
End
Begin VB.CommandButton Command1
Caption = "Select Printer..."
Height = 375
Left = 2700
TabIndex = 0
Top = 2700
Width = 1875
End
End
Attribute VB_Name = "Mfrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
'on error resume next
Call GFSelectPrinterfrm.GFSP_SelectPrinter(Mfrm, "Ok", True)
End Sub
Public Sub GFSPEventCancel()
'on error resume next
Debug.Print "Canceled"
End Sub
Public Sub GFSPEventPrint(ByVal PrintCopyNumber As Integer, ByRef GFSPPrinterObject As Printer)
'on error resume next
Debug.Print "Print now " + LTrim$(Str$(PrintCopyNumber)) + " copies"
Picture1.ScaleMode = vbPixels
'print now:
Debug.Print Printer.DeviceName
Debug.Print Printer.Orientation
Call Printer.PaintPicture(Picture1, 0, 0, 32, 32, 0, 0, 32, 32) 'prints mailbox in twice the size
Call Printer.EndDoc
End Sub
[END OF FILE]