全部显示

ColorMode 属性

       

返回或设置一个 AcPrintColor 常量,表明指定的打印机是应该以彩色打印输出,还是以黑白颜色打印输出。可读写。

expression.ColorMode

expression   必需。返回“Applies To”列表中的一个对象的表达式。

示例

下面的示例为当前项目中的第一个窗体设置各种打印机设置。

With Forms(0).Printer

    .TopMargin = 1440
    .BottomMargin = 1440
    .LeftMargin = 1440
    .RightMargin = 1440

    .ColumnSpacing = 360
    .RowSpacing = 360

    .ColorMode = acPRCMColor
    .DataOnly = False
    .DefaultSize = False
    .ItemSizeHeight = 2880
    .ItemSizeWidth = 2880
    .ItemLayout = acPRVerticalColumnLayout
    .ItemsAcross = 6

    .Copies = 1
    .Orientation = acPRORLandscape
    .Duplex = acPRDPVertical
    .PaperBin = acPRBNAuto
    .PaperSize = acPRPSLetter
    .PrintQuality = acPRPQMedium

End With