Export (0) Print
Expand All

Envelope.Insert method

Inserts an envelope as a separate section at the beginning of the specified document.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

void Insert(
	ref Object ExtractAddress,
	ref Object Address,
	ref Object AutoText,
	ref Object OmitReturnAddress,
	ref Object ReturnAddress,
	ref Object ReturnAutoText,
	ref Object PrintBarCode,
	ref Object PrintFIMA,
	ref Object Size,
	ref Object Height,
	ref Object Width,
	ref Object FeedSource,
	ref Object AddressFromLeft,
	ref Object AddressFromTop,
	ref Object ReturnAddressFromLeft,
	ref Object ReturnAddressFromTop,
	ref Object DefaultFaceUp,
	ref Object DefaultOrientation,
	ref Object PrintEPostage,
	ref Object Vertical,
	ref Object RecipientNamefromLeft,
	ref Object RecipientNamefromTop,
	ref Object RecipientPostalfromLeft,
	ref Object RecipientPostalfromTop,
	ref Object SenderNamefromLeft,
	ref Object SenderNamefromTop,
	ref Object SenderPostalfromLeft,
	ref Object SenderPostalfromTop
)

Parameters

ExtractAddress
Type: System.Object

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

Address
Type: System.Object

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

AutoText
Type: System.Object

Optional Object. A string that specifies an AutoText entry to use for the address. If specified, Address is ignored.

OmitReturnAddress
Type: System.Object

Optional Object. True to not insert a return address.

ReturnAddress
Type: System.Object

Optional Object. A string that specifies the return address.

ReturnAutoText
Type: System.Object

Optional Object. A string that specifies an AutoText entry to use for the return address. If specified, ReturnAddress is ignored.

PrintBarCode
Type: System.Object

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

PrintFIMA
Type: System.Object

Optional Object. True to add a Facing Identification Mark (FIMA) for use in presorting courtesy reply mail. For U.S. mail only.

Size
Type: System.Object

Optional Object. A string that specifies the envelope size. The string must match one of the sizes listed in the Envelope size box in the Envelope Options dialog box (for example, "Size 10" or "C4").

Height
Type: System.Object

Optional Object. The height of the envelope, measured in points, when the Size argument is set to "Custom size."

Width
Type: System.Object

Optional Object. The width of the envelope, measured in points, when the Size argument is set to "Custom size."

FeedSource
Type: System.Object

Optional Object. True to use the FeedSource property of the Envelope object to specify which paper tray to use when printing the envelope.

AddressFromLeft
Type: System.Object

Optional Object. The distance, measured in points, between the left edge of the envelope and the recipient's address.

AddressFromTop
Type: System.Object

Optional Object. The distance, measured in points, between the top edge of the envelope and the recipient's address.

ReturnAddressFromLeft
Type: System.Object

Optional Object. The distance, measured in points, between the left edge of the envelope and the return address.

ReturnAddressFromTop
Type: System.Object

Optional Object. The distance, measured in points, between the top edge of the envelope and the return address.

DefaultFaceUp
Type: System.Object

Optional Object. True to print the envelope face up; False to print it face down.

DefaultOrientation
Type: System.Object

Optional Object. The orientation for the envelope. Can be any WdEnvelopeOrientation constant.

PrintEPostage
Type: System.Object

Optional Object. True to insert postage from an Internet postage vendor.

Vertical
Type: System.Object

Optional Object. True to print vertical text on the envelope. Used for Asian envelopes. Default is False.

RecipientNamefromLeft
Type: System.Object

Optional Object. Position of the recipient's name, measured in points from the left edge of the envelope. Used for Asian envelopes.

RecipientNamefromTop
Type: System.Object

Optional Object. Position of the recipient's name, measured in points from the top edge of the envelope. Used for Asian envelopes.

RecipientPostalfromLeft
Type: System.Object

Optional Object. Position of the recipient's postal code, measured in points from the left edge of the envelope. Used for Asian envelopes.

RecipientPostalfromTop
Type: System.Object

Optional Object. Position of the recipient's postal code, measured in points from the top edge of the envelope. Used for Asian envelopes.

SenderNamefromLeft
Type: System.Object

Optional Object. Position of the sender's name, measured in points from the left edge of the envelope. Used for Asian envelopes.

SenderNamefromTop
Type: System.Object

Optional Object. Position of the sender's name, measured in points from the top edge of the envelope. Used for Asian envelopes.

SenderPostalfromLeft
Type: System.Object

Optional Object. Position of the sender's postal code, measured in points from the left edge of the envelope. Used for Asian envelopes.

SenderPostalfromTop
Type: System.Object

Optional Object. Position of the sender's postal code, measured in points from the top edge of the envelope. Used for Asian envelopes.

Show:
© 2014 Microsoft