Object Model Reference : Classes : P : PrintSeparations : Properties : PrintSeparations.InColor |
Property InColor As Boolean
Member of PrintSeparations
The InColor property determines whether separations are printed in color.
The following VBA example iterates through the SystemPrinters collection until it finds the specified printer. It then enables color separations and displays the Print dialog box.
Sub Test() |
Dim prn As Printer |
Dim intCounter As Integer |
For intCounter = 1 To Printers.Count |
Set prn = Printers.Item(intCounter) |
If prn.ColorEnabled Then |
Exit For |
End If |
Next intCounter |
With ActiveDocument |
With .PrintSettings |
Set .Printer = prn |
.Separations.Enabled = True |
.Separations.InColor = True |
.ShowDialog |
End With |
End With |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.