UseEnvelopePaperSizes Property

Microsoft Publisher Visual Basic

expression.UseEnvelopePaperSizes

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 Publisher's envelope printing options. This example assumes the publication is an envelope.

Sub SetEnvelopeOptions()
    With Options
        .UseEnvelopePrintOptions = True
        .UseEnvelopePaperSizes = True
    End With
End Sub