XmlMap.Export Method

Exports the contents of cells mapped to the specified XmlMap object to an XML data file. Returns XlXmlExportResult.

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

Syntax

'Declaration
Function Export ( _
    Url As String, _
    Overwrite As Object _
) As XlXmlExportResult
'Usage
Dim instance As XmlMap
Dim Url As String
Dim Overwrite As Object
Dim returnValue As XlXmlExportResult

returnValue = instance.Export(Url, Overwrite)
XlXmlExportResult Export(
    string Url,
    Object Overwrite
)

Parameters

  • Url
    Type: System.String

    Required String. The path and filename of the XML data file to export to.

  • Overwrite
    Type: System.Object

    Required Boolean. Set to True to overwrite the file specified in the URL parameter if the file exists. The default value if False.

Return Value

Type: Microsoft.Office.Interop.Excel.XlXmlExportResult

Remarks

Use the ExportXml method to export the contents of the mapped cells to a String variable.

See Also

Reference

XmlMap Interface

XmlMap Members

Microsoft.Office.Interop.Excel Namespace