Using XmlImport/Export Fucntions for excel

U

Umair Hasan

All the functions for importing/exporting xml from/into an excel sheet that
have an "out" variable as an argument are throwing COM exceptions.

for example:
Globals.ThisWorkbook.XmlImport(("F:\\temp\\aa.xml"), out map, missing,
missing) is not working but
map.Import("F:\\temp\\aa-2.xml", missing) is working

Similarly:
map.ExportXml(out xmlString) is not working but
map.Export("F:\\temp\\result.xml", overwrite) is working

Here is the exception: {"Type mismatch. (Exception from HRESULT: 0x80020005
(DISP_E_TYPEMISMATCH))"}

any thoughts??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top