Diese Dokumentation wurde archiviert und wird nicht länger gepflegt.

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)

'Usage
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
Dim envelope1 As Envelope
envelope1.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(
	[In, Optional] ref object ExtractAddress, 
	[In, Optional] ref object Address, 
	[In, Optional] ref object AutoText, 
	[In, Optional] ref object OmitReturnAddress, 
	[In, Optional] ref object ReturnAddress, 
	[In, Optional] ref object ReturnAutoText, 
	[In, Optional] ref object PrintBarCode, 
	[In, Optional] ref object PrintFIMA, 
	[In, Optional] ref object Size, 
	[In, Optional] ref object Height, 
	[In, Optional] ref object Width, 
	[In, Optional] ref object FeedSource, 
	[In, Optional] ref object AddressFromLeft, 
	[In, Optional] ref object AddressFromTop, 
	[In, Optional] ref object ReturnAddressFromLeft, 
	[In, Optional] ref object ReturnAddressFromTop, 
	[In, Optional] ref object DefaultFaceUp, 
	[In, Optional] ref object DefaultOrientation, 
	[In, Optional] ref object PrintEPostage, 
	[In, Optional] ref object Vertical, 
	[In, Optional] ref object RecipientNamefromLeft, 
	[In, Optional] ref object RecipientNamefromTop, 
	[In, Optional] ref object RecipientPostalfromLeft, 
	[In, Optional] ref object RecipientPostalfromTop, 
	[In, Optional] ref object SenderNamefromLeft, 
	[In, Optional] ref object SenderNamefromTop, 
	[In, Optional] ref object SenderPostalfromLeft, 
	[In, Optional] ref object SenderPostalfromTop
);
public void PrintOut(
	/*in*/System.Object ExtractAddress, 
	/*in*/System.Object Address, 
	/*in*/System.Object AutoText, 
	/*in*/System.Object OmitReturnAddress, 
	/*in*/System.Object ReturnAddress, 
	/*in*/System.Object ReturnAutoText, 
	/*in*/System.Object PrintBarCode, 
	/*in*/System.Object PrintFIMA, 
	/*in*/System.Object Size, 
	/*in*/System.Object Height, 
	/*in*/System.Object Width, 
	/*in*/System.Object FeedSource, 
	/*in*/System.Object AddressFromLeft, 
	/*in*/System.Object AddressFromTop, 
	/*in*/System.Object ReturnAddressFromLeft, 
	/*in*/System.Object ReturnAddressFromTop, 
	/*in*/System.Object DefaultFaceUp, 
	/*in*/System.Object DefaultOrientation, 
	/*in*/System.Object PrintEPostage, 
	/*in*/System.Object Vertical, 
	/*in*/System.Object RecipientNamefromLeft, 
	/*in*/System.Object RecipientNamefromTop, 
	/*in*/System.Object RecipientPostalfromLeft, 
	/*in*/System.Object RecipientPostalfromTop, 
	/*in*/System.Object SenderNamefromLeft, 
	/*in*/System.Object SenderNamefromTop, 
	/*in*/System.Object SenderPostalfromLeft, 
	/*in*/System.Object SenderPostalfromTop
);
function PrintOut(
	 ExtractAddress : Object, 
	 Address : Object, 
	 AutoText : Object, 
	 OmitReturnAddress : Object, 
	 ReturnAddress : Object, 
	 ReturnAutoText : Object, 
	 PrintBarCode : Object, 
	 PrintFIMA : Object, 
	 Size : Object, 
	 Height : Object, 
	 Width : Object, 
	 FeedSource : Object, 
	 AddressFromLeft : Object, 
	 AddressFromTop : Object, 
	 ReturnAddressFromLeft : Object, 
	 ReturnAddressFromTop : Object, 
	 DefaultFaceUp : Object, 
	 DefaultOrientation : Object, 
	 PrintEPostage : Object, 
	 Vertical : Object, 
	 RecipientNamefromLeft : Object, 
	 RecipientNamefromTop : Object, 
	 RecipientPostalfromLeft : Object, 
	 RecipientPostalfromTop : Object, 
	 SenderNamefromLeft : Object, 
	 SenderNamefromTop : Object, 
	 SenderPostalfromLeft : Object, 
	 SenderPostalfromTop : Object
);

Parameters

ExtractAddress

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

Address

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

AutoText

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

OmitReturnAddress

Optional Object. True to omit the return address.

ReturnAddress

Optional Object. A string that specifies the return address.

ReturnAutoText

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

PrintBarCode

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

PrintFIMA

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

Size

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

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

Width

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

FeedSource

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

AddressFromLeft

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

AddressFromTop

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

ReturnAddressFromLeft

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

ReturnAddressFromTop

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

DefaultFaceUp

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

DefaultOrientation

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

PrintEPostage

Optional Object. True to print postage using an Internet e-postage vendor.

Vertical

Optional Object. True prints text vertically on the envelope. Used for Asian-language envelopes.

RecipientNamefromLeft

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

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

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

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

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

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

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

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Anzeigen: