起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 109|回复: 3

[结贴] 切换到报表设计出错

[复制链接]

1

主题

3

帖子

17

积分

新手上路

Rank: 1

积分
17
QQ
发表于 2019-2-2 16:30:32 | 显示全部楼层 |阅读模式
微信图片_20190202162439.png

切换到报表设计或直接打开Excel文件出错:
[ERROR] xui报表设计器:excel ole创建出错。 [com.justep.studio.ui.editors.xui.designpanel.ReportDesignPanel 2019-02-02 16:25:33]
org.eclipse.swt.SWTException: Class ID not found in registry
    at org.eclipse.swt.ole.win32.OLE.error(OLE.java:317)
    at org.eclipse.swt.ole.win32.OleClientSite.<init>(OleClientSite.java:189)
    at com.justep.studio.ui.editors.xui.designpanel.ReportDesignPanel.createClientSite(Unknown Source)
    at com.justep.studio.ui.editors.xui.designpanel.ReportDesignPanel.setXuiElements(Unknown Source)
    at com.justep.studio.ui.editors.xui.DesignPanelContainer.showDesignePanel(Unknown Source)
    at com.justep.studio.ui.editors.xui.DesignPanelContainer.showDesignePanel(Unknown Source)
    at Report.gotoReportDesigner(Report.java:63)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.justep.studio.ui.editors.util.XuiDynJavaManager.executeMethod(Unknown Source)
    at com.justep.studio.ui.editors.xui.designpanel.ContextAction.widgetSelected(Unknown Source)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
[ERROR] xui报表设计器:excel ole创建出错。 [com.justep.studio.ui.editors.xui.designpanel.ReportDesignPanel 2019-02-02 16:25:33]
org.eclipse.swt.SWTException: Class ID not found in registry
    at org.eclipse.swt.ole.win32.OLE.error(OLE.java:317)
    at org.eclipse.swt.ole.win32.OleClientSite.<init>(OleClientSite.java:189)
    at com.justep.studio.ui.editors.xui.designpanel.ReportDesignPanel.createClientSite(Unknown Source)
    at com.justep.studio.ui.editors.xui.designpanel.ReportDesignPanel.setXuiElements(Unknown Source)
    at com.justep.studio.ui.editors.xui.DesignPanelContainer.showDesignePanel(Unknown Source)
    at com.justep.studio.ui.editors.xui.DesignPanelContainer.showDesignePanel(Unknown Source)
    at Report.gotoReportDesigner(Report.java:63)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.justep.studio.ui.editors.util.XuiDynJavaManager.executeMethod(Unknown Source)
    at com.justep.studio.ui.editors.xui.designpanel.ContextAction.widgetSelected(Unknown Source)
    ....
[ERROR] 执行方出错:[Report@75a78e gotoReportDesigner] [com.justep.studio.ui.editors.util.XuiDynJavaManager 2019-02-02 16:25:33]
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.justep.studio.ui.editors.util.XuiDynJavaManager.executeMethod(Unknown Source)
    at com.justep.studio.ui.editors.xui.designpanel.ContextAction.widgetSelected(Unknown Source)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
   .....
Caused by: java.lang.NullPointerException
    at com.justep.studio.ui.editors.xui.designpanel.ReportDesignPanel.setXuiElements(Unknown Source)
    at com.justep.studio.ui.editors.xui.DesignPanelContainer.showDesignePanel(Unknown Source)
    at com.justep.studio.ui.editors.xui.DesignPanelContainer.showDesignePanel(Unknown Source)
    at Report.gotoReportDesigner(Report.java:63)
    ... 32 more
[ERROR] 执行方出错:[Report@75a78e gotoReportDesigner] [com.justep.studio.ui.editors.util.XuiDynJavaManager 2019-02-02 16:25:33]
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.justep.studio.ui.editors.util.XuiDynJavaManager.executeMethod(Unknown Source)
    at com.justep.studio.ui.editors.xui.designpanel.ContextAction.widgetSelected(Unknown Source)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
Caused by: java.lang.NullPointerException
    at com.justep.studio.ui.editors.xui.designpanel.ReportDesignPanel.setXuiElements(Unknown Source)
    at com.justep.studio.ui.editors.xui.DesignPanelContainer.showDesignePanel(Unknown Source)
    at com.justep.studio.ui.editors.xui.DesignPanelContainer.showDesignePanel(Unknown Source)
    at Report.gotoReportDesigner(Report.java:63)
    ... 32 more
操作系统:Windows10
Excel版本:2016
初步分析应该是OLE插件不兼容,开发平台应该只兼容到2007
请解决!?


86

主题

12万

帖子

2万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
27303
发表于 2019-2-13 14:15:05 | 显示全部楼层
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

1

主题

3

帖子

17

积分

新手上路

Rank: 1

积分
17
QQ
 楼主| 发表于 2019-2-20 11:35:29 | 显示全部楼层
通过重新安装Office2013的方式解决,电脑的分辨率一定要100%,不能是150%之类,否则打开也会出错
回复 支持 反对

使用道具 举报

2

主题

5

帖子

17

积分

新手上路

Rank: 1

积分
17
QQ
发表于 5 天前 | 显示全部楼层
把xls改成xlsx就好了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2019-4-23 04:33 , Processed in 0.131378 second(s), 29 queries .

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表