I have successfully used vb.net arcobjects to run several geoprocessing tools, but when I ran "Table to excel", I got the following error:
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at ESRI.ArcGIS.Geoprocessing.GeoProcessorClass.Execute(String Name, IVariantArray ipValues, ITrackCancel pTrackCancel)
My code is as follows:
Dim GP As GeoProcessor = New GeoProcessor()
Dim parameters As IVariantArray = New VarArray
GP.Execute("TableToExcel_conversion", parameters, Nothing)
Catch ex As Exception
logger.Error("ExportSegmentToExcel: " + ex.ToString)
Is this caused by the code or library? Thanks for the attention.