问题:
客户用的wps,登陆时提示未指定错误,更换为office没有该问题。
System.Runtime.InteropServices.COMException (0x80004005):See inner exception (s) for details.--->
System.Reflection.TargetInvocationException:Exception has been thrown by the target of an invocation.--->System.Runtime.InteropServices.COMException:未指定的错误(Exception from HREBSULT: 0x80004005(E_FAIL))
--- End of inner exception stack trace ---
at System.RuntimeType.InvokeDispMethod (String name, BindingFlags invokeittr, Object target, Object [] args,Boolean[] byrefModifiers, Int32 culture, string[] namedParameters)
at System.RuntimeType.InvokeMmber (String name, BindingFlags bindingFlag,Binder binder,Object target,object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at Netoffice.Invoker.propertySet (COMObject comObject, string name,Object[] value)
at Netoffice.Invoker.PropertySet (COMObject comObject, string name,Object[] value)
at Netoffice.officeApi._CustomTaskPane.set_Visible (Boolean value)
at SmartbiExcelAddIn.Exce1Addin.hideResourcePane(o)
at SmartbiExcelAddIn.ExcelAddin.doLogout()
at SmartbiExcelAddIn.ExcelAddin. onAction(IRibboncontrol control)
解决方案:
调用excel的接口出错了,可杀掉excel进程后重新打开。