Envelope.PrintOut Method (Word)
Prints an envelope without adding the envelope 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, PrintEPostage, Vertical, RecipientNamefromLeft, RecipientNamefromTop, RecipientPostalfromLeft, RecipientPostalfromTop, SenderNamefromLeft, SenderNamefromTop, SenderPostalfromLeft, SenderPostalfromTop)
expression Required. A variable that represents an Envelope object.
Parameters
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
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 |
True to use the FeedSource property of the Envelope object to specify which paper tray to use when printing the envelope. |
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 any WdEnvelopeOrientation constant. |
PrintEPostage |
Optional |
Variant |
True to print postage using an Internet e-postage vendor. |
Vertical |
Optional |
Variant |
True prints text vertically on the envelope. Used for Asian-language envelopes. |
RecipientNamefromLeft |
Optional |
Variant |
The position of the recipient's name, measured in points, from the left edge of the envelope. Used for Asian-language envelopes. |
RecipientNamefromTop |
Optional |
Variant |
The position of the recipient's name, measured in points, from the top edge of the envelope. Used for Asian-language envelopes. |
RecipientPostalfromLeft |
Optional |
Variant |
The position of the recipient's postal code, measured in points, from the left edge of the envelope. Used for Asian-language envelopes. |
RecipientPostalfromTop |
Optional |
Variant |
The position of the recipient's postal code, measured in points, from the top edge of the envelope. Used for Asian-language envelopes. |
SenderNamefromLeft |
Optional |
Variant |
The position of the sender's name, measured in points, from the left edge of the envelope. Used for Asian-language envelopes. |
SenderNamefromTop |
Optional |
Variant |
The position of the sender's name, measured in points, from the top edge of the envelope. Used for Asian-language envelopes. |
SenderPostalfromLeft |
Optional |
Variant |
The position of the sender's postal code, measured in points, from the left edge of the envelope. Used for Asian-language envelopes. |
SenderPostalfromTop |
Optional |
Variant |
The position of the sender's postal code, measured in points, from the top edge of the envelope. Used for Asian-language envelopes. |
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