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)
Syntax
'Declaration
Sub Insert ( _
ByRef ExtractAddress As Object, _
ByRef Address As Object, _
ByRef AutoText As Object, _
ByRef OmitReturnAddress As Object, _
ByRef ReturnAddress As Object, _
ByRef ReturnAutoText As Object, _
ByRef PrintBarCode As Object, _
ByRef PrintFIMA As Object, _
ByRef Size As Object, _
ByRef Height As Object, _
ByRef Width As Object, _
ByRef FeedSource As Object, _
ByRef AddressFromLeft As Object, _
ByRef AddressFromTop As Object, _
ByRef ReturnAddressFromLeft As Object, _
ByRef ReturnAddressFromTop As Object, _
ByRef DefaultFaceUp As Object, _
ByRef DefaultOrientation As Object, _
ByRef PrintEPostage As Object, _
ByRef Vertical As Object, _
ByRef RecipientNamefromLeft As Object, _
ByRef RecipientNamefromTop As Object, _
ByRef RecipientPostalfromLeft As Object, _
ByRef RecipientPostalfromTop As Object, _
ByRef SenderNamefromLeft As Object, _
ByRef SenderNamefromTop As Object, _
ByRef SenderPostalfromLeft As Object, _
ByRef SenderPostalfromTop As Object _
)
'Usage
Dim instance As Envelope
Dim ExtractAddress As Object
Dim Address As Object
Dim AutoText As Object
Dim OmitReturnAddress As Object
Dim ReturnAddress As Object
Dim ReturnAutoText As Object
Dim PrintBarCode As Object
Dim PrintFIMA As Object
Dim Size As Object
Dim Height As Object
Dim Width As Object
Dim FeedSource As Object
Dim AddressFromLeft As Object
Dim AddressFromTop As Object
Dim ReturnAddressFromLeft As Object
Dim ReturnAddressFromTop As Object
Dim DefaultFaceUp As Object
Dim DefaultOrientation As Object
Dim PrintEPostage As Object
Dim Vertical As Object
Dim RecipientNamefromLeft As Object
Dim RecipientNamefromTop As Object
Dim RecipientPostalfromLeft As Object
Dim RecipientPostalfromTop As Object
Dim SenderNamefromLeft As Object
Dim SenderNamefromTop As Object
Dim SenderPostalfromLeft As Object
Dim SenderPostalfromTop As Object
instance.Insert(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)
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.