Name As Long
    hPrintTemplate As Long
    hSetupTemplate As Long
End Type

'  DEVMODE collation selections
Private Const DMCOLLATE_FALSE = 0
Private Const DMCOLLATE_TRUE = 1

Private Declare Function PrintDlg Lib "COMDLG32.DLL" _
    Alias "PrintDlgA" (prtdlg As TPRINTDLG) As Integer

Public Enum EPrintDialog
    PD_ALLPAGES = &amp;H0
    PD_SELECTION = &amp;H1
    PD_PAGENUMS = &amp;H2
    PD_NOSELECTION = &amp;H4
    PD_NOPAGENUMS = &amp;H8
    PD_COLLATE = &amp;H10
    PD_PRINTTOFILE = &amp;H20
    PD_