XmlMap.Import Method
Imports data from the specified XML data file into cells that have been mapped to the specified XmlMap object. Returns XlXmlImportResult.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function Import ( _
Url As String, _
Overwrite As Object _
) As XlXmlImportResult
'Usage
Dim instance As XmlMap
Dim Url As String
Dim Overwrite As Object
Dim returnValue As XlXmlImportResult
returnValue = instance.Import(Url, Overwrite)
XlXmlImportResult Import(
string Url,
Object Overwrite
)
Parameters
Url
Type: System.StringRequired String. The path to the XML data to import. The path can be specified in Universal Naming convention (UNC) or Uniform Resource Locator (URL) format. The file can be an XML data file or a valid Office XML data Source Connection (.uxdc) file.
Overwrite
Type: System.ObjectOptional Object. Set to True to overwrite existing data. Set to False to append to existing data. The default value is False.
Return Value
Type: Microsoft.Office.Interop.Excel.XlXmlImportResult