Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ApplicationEvents4_EPostageInsertExEventHandler Delegate 

A Delegate type used to add an event handler for the EPostageInsertEx event. The EPostageInsertEx event occurs when a user inserts electronic postage into a document.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

'Usage
Sub Sub1(Doc As Document, _
	cpDeliveryAddrStart As Integer, _
	cpDeliveryAddrEnd As Integer, _
	cpReturnAddrStart As Integer, _
	cpReturnAddrEnd As Integer, _
	xaWidth As Integer, _
	yaHeight As Integer, _
	bstrPrinterName As String, _
	bstrPaperFeed As String, _
	fPrint As Boolean, _
	fCancel As Boolean)
End Sub
Dim applicationEvents4_EPostageInsertExEventHandler1 As New ApplicationEvents4_EPostageInsertExEventHandler(AddressOf Sub1)

public delegate void ApplicationEvents4_EPostageInsertExEventHandler(
	[In] Document Doc, 
	[In] int cpDeliveryAddrStart, 
	[In] int cpDeliveryAddrEnd, 
	[In] int cpReturnAddrStart, 
	[In] int cpReturnAddrEnd, 
	[In] int xaWidth, 
	[In] int yaHeight, 
	[In] string bstrPrinterName, 
	[In] string bstrPaperFeed, 
	[In] bool fPrint, 
	[In, Out] ref bool fCancel
);
public delegate void ApplicationEvents4_EPostageInsertExEventHandler(
	/*in*/Document Doc, 
	/*in*/int cpDeliveryAddrStart, 
	/*in*/int cpDeliveryAddrEnd, 
	/*in*/int cpReturnAddrStart, 
	/*in*/int cpReturnAddrEnd, 
	/*in*/int xaWidth, 
	/*in*/int yaHeight, 
	/*in*/System.String bstrPrinterName, 
	/*in*/System.String bstrPaperFeed, 
	/*in*/boolean fPrint, 
	/*in*/boolean fCancel
);
In JScript, you can use the delegates in the .NET Framework, but you cannot define your own.

Parameters

Doc

Required Document. The document to which electronic postage is being added.

cpDeliveryAddrStart

Integer. The starting position in the document for the delivery address. Positioning corresponds to the value of the Start property for a Range object.

cpDeliveryAddrEnd

Integer. The ending position in the document for the delivery address. Positioning corresponds to the value of the End property for a Range object.

cpReturnAddrStart

Integer. The starting position in the document for the return address. Positioning corresponds to the value of the Start property for a Range object.

cpReturnAddrEnd

Integer. The ending position in the document for the return address. Positioning corresponds to the value of the End property for a Range object.

xaWidth

Integer. The width of the envelope in 1/1440-inch units.

yaHeight

Integer. The height of the envelope in 1/1440-inch units.

bstrPrinterName

String. The name of the printer as specified on the Printing Options tab of the Envelope Options dialog box.

bstrPaperFeed

String. The feed method as specified on the Printing Options tab of the Envelope Options dialog box.

fPrint

Boolean. True if the user has specified to print the envelope. False if the user has specified to insert the envelope into the document.

fCancel

Boolean. True cancels the action the user specified as indicated in the fPrint parameter.

Development Platforms

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

Target Platforms

Community Additions

Show:
© 2014 Microsoft