PrintMode Property

Microsoft Publisher Visual Basic

Show All Show All

PrintMode Property

Returns or sets a PbPrintMode constant that represents whether the specified publication is printed as a composite or separations. Read/write.

PbPrintMode can be one of these PbPrintMode constants.
pbPrintModeCompositeCMYK Print a composite whose colors are defined by the CMYK color model.
pbPrintModeGrayscale Print a composite whose colors are defined as shades of gray.
pbPrintModeCompositeRGB Print a composite whose colors are defined by the RGB color model.
pbPrintModeSeparations Print a separate plate for each ink used in the publication.

expression.PrintMode()

expression    Required. An expression that returns an AdvancedPrintOptions object.

Remarks

The PrintMode property applies to the publication only as it is currently being printed. This property is not saved with the publication, nor as an application setting.

The default value for the PrintMode property is pbPrintModeCompositeRGB. To specify pbPrintModeCompositeCMYK as the default value for future instances of Publisher, use the PrintCMYKByDefault property.

This property corresponds to the Output control on the Separations tab of the Advanced Print Settings dialog box.

The PrintablePlates collection is generated when a publication's print mode is set to separations. The PrintablePlates collection represents the plates that will actually be printed for the publication, based on:

  • The plates (if any) you have defined for the publication
  • The advanced print options specified

If you specify separations as the print mode, you can specify which plates to print by using the InksToPrint property of the AdvancedPrintOptions object. You can also prevent printing plates for any pages where a color is not used by setting the PrintBlankPlates property.

Example

The following example tests to determine if the active publication has been set to print as separations. If it has, it is set to print only plates for the inks actually used in the publication, and to not print plates for any pages where a color is not used.

    Sub PrintOnlyInksUsed
	With ActiveDocument.AdvancedPrintOptions
		If .PrintMode = pbPrintModeSeparations Then
			.InksToPrint = pbInksToPrintUsed
			.PrintBlankPlates = False
		End If
	End With
End Sub