Share via


EnvelopePrintPlacement Property [Publisher 2003 VBA Language Reference]

PbPlacementType

PbPlacementType can be one of these PbPlacementType constants.
pbPlacementCenter
pbPlacementLeft
pbPlacementRight

expression.EnvelopePrintPlacement

expression Required. An expression that returns one of the objects in the Applies To list.

Remarks

Returns 'Permission Denied' for publications that are not envelopes.

Example

This example sets envelope printing options, including specifying how envelopes are placed in the printer tray. This example assumes the publication is an envelope.

Sub SetEnvelopeOptions()
    With Options
        .UseEnvelopePrintOptions = True
        .UseEnvelopePaperSizes = True
        .EnvelopePrintOrientation = pbOrientationLandscape
        .EnvelopePrintPlacement = pbPlacementLeft
    End With
End Sub

Applies to | Options Object