Excel with C# connection -


i have code

exapplication = new excel.application(); excel.workbook wb = exapplication.thisworkbook; wb.connections.addfromfile("c:\test.odc"); 

and when trying compile it, gives me following exception:

exception hresult: 0x800a03ec 

you should replace

wb.connections.addfromfile("c:\test.odc"); 

by

wb.connections.addfromfile(@"c:\test.odc"); 

although don't think exception because of this.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -