AnsweredAssumed Answered

Excel to ITable in arcgis soe 10.2.2

Question asked by mohannainar on Jan 28, 2015
Latest reply on Feb 9, 2015 by mohannainar

I am trying to convert excel to ITable in ArcGIS (10.2.2) SOE. I am using the below code for converting.


Type factoryType = Type.GetTypeFromProgID( "esriDataSourcesOleDB.ExcelWorkspaceFactory");  

IWorkspaceFactory workspaceFactory = (IWorkspaceFactory)Activator.CreateInstance(factoryType);

IWorkspace workspace = workspaceFactory.OpenFromFile(@"E:\apps\DevelopmentArea\test.xls", 0);

IFeatureWorkspace featureWorkspace = (IFeatureWorkspace)workspace;

ITable table = featureWorkspace.OpenTable("Sheet1$");


I am getting the error in OpenfromFile method , arcgis server and the SOE projects are in same system.

Error message : Exception from HRESULT: 0x80040213


I checked in the net i could find any help. Kindly provide your suggestion