Message 1 of 4
Print API question
Not applicable
03-12-2002
05:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've some problems with the control of the Windows
printer regarding Landscape and Portrait, the example below is a test of the of
DrawingPrintManager
property Orientation, changing the orientation has no effect in the
code?
printer regarding Landscape and Portrait, the example below is a test of the of
DrawingPrintManager
property Orientation, changing the orientation has no effect in the
code?
I may have misunderstood the possibility in the
DrawingPrintManager so
I would appreciate if anyone could clarify the usage of the
object.
DrawingPrintManager so
I would appreciate if anyone could clarify the usage of the
object.
title="DrawingPrintManager Object">
title="DrawingPrintManager Object">My goal is to make a "poor man"
PDF saver (with GhostScript) that generate a PDF file when the drawing is
saved.
title="DrawingPrintManager Object">
title="DrawingPrintManager Object">-Patrick
Public Sub PrintTest()
' Set a reference to the print
manager object of the active document.
' This will fail if
a drawing document is not active.
Dim oPrintMgr As
DrawingPrintManager
Set oPrintMgr =
ThisApplication.ActiveDocument.PrintManager
' Set to print in Gray
manager object of the active document.
' This will fail if
a drawing document is not active.
Dim oPrintMgr As
DrawingPrintManager
Set oPrintMgr =
ThisApplication.ActiveDocument.PrintManager
' Set to print in Gray
oPrintMgr.ColorMode =
kPrintGrayScale
' Set to
print one copy
oPrintMgr.NumberOfCopies =
1
' Set the paper size.
oPrintMgr.PaperSize =
kPaperSizeA4
' Set the Windows
printer name
oPrintMgr.Printer = "EPSON Stylus Photo
750"
' Set to
print all sheets.
oPrintMgr.PrintRange =
kPrintAllSheets
' Set to print full
scale.
oPrintMgr.ScaleMode =
kPrintFullScale
' Set to print using portrait orientation.
oPrintMgr.Orientation = kPortraitOrientation
' Submit the print.
oPrintMgr.SubmitPrint
' Set to print using landscape orientation.
oPrintMgr.Orientation = kLandscapeOrientation
' Submit the print.
oPrintMgr.SubmitPrint
kPrintGrayScale
' Set to
print one copy
oPrintMgr.NumberOfCopies =
1
' Set the paper size.
oPrintMgr.PaperSize =
kPaperSizeA4
' Set the Windows
printer name
oPrintMgr.Printer = "EPSON Stylus Photo
750"
' Set to
print all sheets.
oPrintMgr.PrintRange =
kPrintAllSheets
' Set to print full
scale.
oPrintMgr.ScaleMode =
kPrintFullScale
' Set to print using portrait orientation.
oPrintMgr.Orientation = kPortraitOrientation
' Submit the print.
oPrintMgr.SubmitPrint
' Set to print using landscape orientation.
oPrintMgr.Orientation = kLandscapeOrientation
' Submit the print.
oPrintMgr.SubmitPrint
End Sub