将函数定义为: Function SetDefaultPrinterOrientation(ByVal eOrientation As _ PrinterOrientationConstants, iDmpaper As Integer,byval iDmpaperLength as long,byval iDmpaperWidth as long) As Boolean然后将下面两句前面的注释去掉 ' .dmPaperLength = iDmpaperLength ' .dmPaperWidth = iDmpaperWidth 没细看,也许不对
Function SetDefaultPrinterOrientation(ByVal eOrientation As _
PrinterOrientationConstants, iDmpaper As Integer,byval iDmpaperLength as long,byval iDmpaperWidth as long) As Boolean然后将下面两句前面的注释去掉
' .dmPaperLength = iDmpaperLength
' .dmPaperWidth = iDmpaperWidth
没细看,也许不对
'*******************'
' iDmpaper值 纸张 '
' 9 A4 '
' 11 A5 '
' 13 B5 '
'*******************'在窗体中调用为:SetDefaultPrinterOrientation 1,9
SetDefaultPrinterOrientation ???