AppEvents_WorkbookBeforeXmlExportEventHandler Delegate 

A Delegate type used to add an event handler for the WorkbookBeforeXmlExport event. The WorkbookBeforeXmlExport event occurs before Microsoft Excel saves or exports data from any open workbook to an XML data file.

Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)

Usage

Sub Sub1(Wb As Workbook, _
    Map As XmlMap, _
    Url As String, _
    Cancel As Boolean)
End Sub
Dim appEvents_WorkbookBeforeXmlExportEventHandler1 As New AppEvents_WorkbookBeforeXmlExportEventHandler(AddressOf Sub1)

Syntax

Public Delegate Sub AppEvents_WorkbookBeforeXmlExportEventHandler( _
    <InAttribute()> ByVal Wb As Workbook, _
    <InAttribute()> ByVal Map As XmlMap, _
    <InAttribute()> ByVal Url As String, _
    <InAttribute(), OutAttribute()> ByRef Cancel As Boolean _
)
public delegate void AppEvents_WorkbookBeforeXmlExportEventHandler(
    [In] Workbook Wb, 
    [In] XmlMap Map, 
    [In] string Url, 
    [In, Out] ref bool Cancel
);
public delegate Void AppEvents_WorkbookBeforeXmlExportEventHandler(
    Workbook^ Wb, 
    XmlMap^ Map, 
    String^ Url, 
    &Boolean Cancel
);
public delegate void AppEvents_WorkbookBeforeXmlExportEventHandler(
    /*in*/Workbook Wb, 
    /*in*/XmlMap Map, 
    /*in*/System.String Url, 
    /*in*/boolean Cancel
);
In JScript, you can use the delegates in the .NET Framework, but you cannot define your own.

Parameters

  • Wb
    Required Workbook. The target workbook.
  • Map
    Required XmlMap. The XML map that will be used to save or export data.
  • Url
    Required String. The location of the XML file to be exported.
  • Cancel
    Required Boolean. Set to True to cancel the save or export operation.

Platforms

Development Platforms

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

Target Platforms

See Also

Reference

Microsoft.Office.Interop.Excel Namespace