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)

Syntax

Public Delegate Sub ApplicationEvents4_EPostageInsertExEventHandler( _
    <InAttribute()> ByVal Doc As Document, _
    <InAttribute()> ByVal cpDeliveryAddrStart As Integer, _
    <InAttribute()> ByVal cpDeliveryAddrEnd As Integer, _
    <InAttribute()> ByVal cpReturnAddrStart As Integer, _
    <InAttribute()> ByVal cpReturnAddrEnd As Integer, _
    <InAttribute()> ByVal xaWidth As Integer, _
    <InAttribute()> ByVal yaHeight As Integer, _
    <InAttribute()> ByVal bstrPrinterName As String, _
    <InAttribute()> ByVal bstrPaperFeed As String, _
    <InAttribute()> ByVal fPrint As Boolean, _
    <InAttribute(), OutAttribute()> ByRef fCancel As Boolean _
)
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(
    Document^ Doc, 
    Int32 cpDeliveryAddrStart, 
    Int32 cpDeliveryAddrEnd, 
    Int32 cpReturnAddrStart, 
    Int32 cpReturnAddrEnd, 
    Int32 xaWidth, 
    Int32 yaHeight, 
    String^ bstrPrinterName, 
    String^ bstrPaperFeed, 
    Boolean fPrint, 
    &Boolean 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.

Platforms

Development Platforms

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

Target Platforms

See Also

Reference

Microsoft.Office.Interop.Word Namespace