2010/10/21

VB6 讓 printer 直印/橫印

Dim Printer As New Printer If Printer.Height > Printer.Width Then Printer.Orientation = vbPRORPortrait Else Printer.Orientation = vbPRORLandscape End If Printer.Print("Hello") Printer.EndDoc()


vbPRORPortrait 1 文件會垂直列印。頁面的高度大於寬度。
vbPRORLandscape 2 文件會水平列印。頁面的寬度大於高度。 

● Ref: 
msdn.microsoft.com 
<WebCache>


● printer 其他 method 及屬性:
msdn.microsoft.com
<WebCache>

2 則留言:

  1. Get the compatible software by navigating to the 123.hp.com/setup web page!

    回覆刪除
  2. 這邊要說的 是 直接由程式設定好,不需要end-user自己再去手動調整設定值
    使用者只須無腦的按下列印按鍵即可
    無關compatible不compatible...

    回覆刪除