According to the method of online merged, excel in a table cell. Refer to the Microsoft Office. Interop. Excel type library,
Merger that remark sparked abnormalities,
Variable mysheet is read from the file table, open the monitor can see the following information:
One of the information is as follows:
{System. Reflection. TargetInvocationException: call the goal of the abnormal happens, - & gt; Exception: System.Runtime.InteropServices.COM format too old or type library is invalid, (Exception from HRESULT: 0 x80028018 (TYPE_E_INVDATAREAD))
- at the end of the inner exception stack trace -- -- --
In the System. RuntimeType. InvokeDispMethod (String name, BindingFlags invokeAttr, Object, target, Object [] args, Boolean [] byrefModifiers, Int32 culture, String [] namedParameters)
In the System. RuntimeType. InvokeMember (String name, BindingFlags BindingFlags, Binder Binder, the Object target, the Object [] providedArgs, ParameterModifier [] modifiers, CultureInfo culture, String [] namedParams)
In the System. The Dynamic. IDispatchComObject. GetMembers (IEnumerable ` 1 names)}
What reason is? I excel 2016, version is: use the excel version of the high, and references that Microsoft. Office. Interop. Excel low class library version? Thank you very much!