页面树结构
转至元数据结尾
转至元数据起始

问题1:

客户用的wps,登陆时提示未指定错误(Exception from HRESULT:0x80004005(E_FAIL)),更换为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)


问题2:

客户用的wps,打开报表时报错“尝试使用不具备后备类工厂的 COM 对象”

System.Runtime,Interopservices.COMException (0x80004005): See inner exception(s) for details.--->System.Runtime.InteropServices.InvalidComObjectException:
尝试使用不具备后备类工厂的 COM 对象。
在Netoffice.Invoker.PropertyGet(COMObject comObject, String name,Object[] paramsArray)
Netoffice.Invoker.PropertyGet (COMObject comObject, String name, object[] paramsArray)

在Netoffice.ExcelApi._Application.get_Path()
在SmartbiExcelAddIn.ExcelAddin.isWps()

在SmartbiexcelAddin,ResourcePanelControl.ResourcePanelControl SizeChanged(Obiect sender, EventArgs e
在Svstem.Windows.Forms.Control.OnsizeChanged(EventAras e)
在System.Windows.Forms.Control.UpdateBounds(Int32 X, Int32 y, Int32 width, Int32 height,Int32 clientwidth, Int32 clientHeight)
在System.Windows .Forms.Control.UpdateBounds ()
在Svstem.WindowsForms.Control.WmWindowPosChanged(Messages m)
在system.Windows.Forms.Control.WndProc (Message& m)
在System,Windows,Forms.Control.ActivexImpl.System.Windows.Forms,IWindowlarget,OnMessace (Message& m)
在System.Windows.Forms.NativeWindow.Callback(Intptr hwnd, Int32 msg, Intptr wparam, Intptr lparam)

解决方案:

WPS调用excel的接口出错了,可杀掉excel进程后重新打开。

  • 无标签