Envelope.PrintOut Method

Prints an envelope without adding the envelope to the active document.

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

Syntax

'Declaration
Sub PrintOut ( _
    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.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)
void PrintOut(
    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. The name of the AutoText entry that includes a recipient's address.
  • OmitReturnAddress
    Type: System.Object%
    Optional Object. True to omit the return address.
  • ReturnAddress
    Type: System.Object%
    Optional Object. A string that specifies the return address.
  • ReturnAutoText
    Type: System.Object%
    Optional Object. The name of the AutoText entry that includes a return address.
  • 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 (FIM-A) 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 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
    Type: System.Object%
    Optional Object. The height of the envelope (in points) when the Size argument is set to "Custom size."
  • Width
    Type: System.Object%
    Optional Object. The width of the envelope (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 (in points) between the left edge of the envelope and the recipient's address.
  • AddressFromTop
    Type: System.Object%
    Optional Object. The distance (in points) between the top edge of the envelope and the recipient's address.
  • ReturnAddressFromLeft
    Type: System.Object%
    Optional Object. The distance (in points) between the left edge of the envelope and the return address.
  • ReturnAddressFromTop
    Type: System.Object%
    Optional Object. The distance (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.
  • PrintEPostage
    Type: System.Object%
    Optional Object. True to print postage using an Internet e-postage vendor.
  • Vertical
    Type: System.Object%
    Optional Object. True prints text vertically on the envelope. Used for Asian-language envelopes.
  • RecipientNamefromLeft
    Type: System.Object%
    Optional Object. The position of the recipient's name, measured in points, from the left edge of the envelope. Used for Asian-language envelopes.
  • RecipientNamefromTop
    Type: System.Object%
    Optional Object. The position of the recipient's name, measured in points, from the top edge of the envelope. Used for Asian-language envelopes.
  • RecipientPostalfromLeft
    Type: System.Object%
    Optional Object. The position of the recipient's postal code, measured in points, from the left edge of the envelope. Used for Asian-language envelopes.
  • RecipientPostalfromTop
    Type: System.Object%
    Optional Object. The position of the recipient's postal code, measured in points, from the top edge of the envelope. Used for Asian-language envelopes.
  • SenderNamefromLeft
    Type: System.Object%
    Optional Object. The position of the sender's name, measured in points, from the left edge of the envelope. Used for Asian-language envelopes.
  • SenderNamefromTop
    Type: System.Object%
    Optional Object. The position of the sender's name, measured in points, from the top edge of the envelope. Used for Asian-language envelopes.
  • SenderPostalfromLeft
    Type: System.Object%
    Optional Object. The position of the sender's postal code, measured in points, from the left edge of the envelope. Used for Asian-language envelopes.
  • SenderPostalfromTop
    Type: System.Object%
    Optional Object. The position of the sender's postal code, measured in points, from the top edge of the envelope. Used for Asian-language envelopes.

See Also

Reference

Envelope Interface

Envelope Members

Microsoft.Office.Interop.Word Namespace