PrintOut Method (Envelope Object)

Applies To

Envelope object.

Description

Prints an envelope without adding it to the active document.

Syntax

expression.PrintOut(ExtractAddress, Address, AutoText, OmitReturnAddress,
ReturnAddress, ReturnAutoText, PrintBarCode, PrintFIMA, Size, Height, Width,
FeedSource, AddressFromLeft, AddressFromTop, ReturnAddressFromLeft,
ReturnAddressFromTop, DefaultFaceUp, DefaultOrientation)

expression Required. An expression that returns an Envelope object.

ExtractAddress Optional Variant. True to use the text marked by the "EnvelopeAddress" bookmark (a user-defined bookmark) as the recipient's address.

Address Optional Variant. A string that specifies the recipient's address (ignored if ExtractAddress is True).

AutoText Optional Variant. The name of the AutoText entry that includes a recipient's address.

OmitReturnAddress Optional Variant. True to omit the return address.

ReturnAddress Optional Variant. A string that specifies the return address.

ReturnAutoText Optional Variant. The name of the AutoText entry that includes a return address.

PrintBarCode Optional Variant. True to add a POSTNET bar code. For U.S. mail only.

PrintFIMA Optional Variant. True to add a Facing Identification Mark (FIM-A) for use in presorting courtesy reply mail. For U.S. mail only.

Size Optional Variant. A string that specifies the envelope size. The string should match one of the sizes listed on the left side of the Envelope size box in the Envelope Options dialog box (for example, "Size 10").

Height Optional Variant. The height of the envelope (in points) when the Size argument is set to "Custom size."

Width Optional Variant. The width of the envelope (in points) when the Size argument is set to "Custom size."

FeedSource Optional Variant. The paper tray to be used when the envelope is printed. Can be one of the following WdPaperTray constants:

  • wdPrinterAutomaticSheetFeed
  • wdPrinterDefaultBin
  • wdPrinterEnvelopeFeed
  • wdPrinterFormSource
  • wdPrinterLargeCapacityBin
  • wdPrinterLargeFormatBin
  • wdPrinterLowerBin
  • wdPrinterManualEnvelopeFeed
  • wdPrinterManualFeed
  • wdPrinterMiddleBin
  • wdPrinterOnlyBin
  • wdPrinterPaperCassette
  • wdPrinterSmallFormatBin
  • wdPrinterTractorFeed
  • wdPrinterUpperBin

AddressFromLeft Optional Variant. The distance (in points) between the left edge of the envelope and the recipient's address.

AddressFromTop Optional Variant. The distance (in points) between the top edge of the envelope and the recipient's address.

ReturnAddressFromLeft Optional Variant. The distance (in points) between the left edge of the envelope and the return address.

ReturnAddressFromTop Optional Variant. The distance (in points) between the top edge of the envelope and the return address.

DefaultFaceUp   Optional Variant. True to print the envelope face up, False to print it face down.

DefaultOrientation   Optional Variant. The orientation of the envelope. Can be one of the following WdEnvelopeOrientation constants: wdLeftPortrait, wdCenterPortrait, wdRightPortrait, wdLeftLandscape, wdCenterLandscape, wdRightLandscape, wdLeftClockwise, wdCenterClockwise, or wdRightClockwise.

See Also

Envelope object, Insert method, UpdateDocument method.

Example

This example prints an envelope using the user address as the return address and a predefined recipient address.

recep = "Don Funk" & vbCr & "123 Skye St." & vbCr & _
    "OurTown, WA 98107"
ActiveDocument.Envelope.PrintOut Address:=recep, _
    ReturnAddress:=Application.UserAddress, _
    Size:="Size 10", PrintBarCode:=True