将 Webi 导出到 Excel 会抛出 java.lang.NoClassFoundException :com.crystaldecisions.celib.trace.h
我必须以excel格式导出Webi报告并将其显示给用户。当前环境是BOXI R3。
ReportQuery:
Select * from CI_INFOOBJECTS where SI_NAME ='xxxx' and si_kind ='Webi' and SI_PARENTID=xxxx
IInfoObjects webiDocs = infostore.query(reportQuery.toString);
IWebi webiDoc =IWebi webiDocs.get(o);
它在 infostore.query 上引发异常:
java.lang.NoClassFoundException:com.crystaldecisions.celib.trace.h
注意:BOXI R3 celib.jar 中不存在 h.class
I have to export the Webi report in the excel format and show it to the user .Environment present is BOXI R3 .
ReportQuery:
Select * from CI_INFOOBJECTS where SI_NAME ='xxxx' and si_kind ='Webi' and SI_PARENTID=xxxx
IInfoObjects webiDocs = infostore.query(reportQuery.toString);
IWebi webiDoc =IWebi webiDocs.get(o);
It throws exception on infostore.query:
java.lang.NoClassFoundException :com.crystaldecisions.celib.trace.h
Note: h.class is not present in BOXI R3 celib.jar
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要打开 WebI 文档以获取数据,您需要遵循与当前方向不同的路线。尝试类似以下内容:
我确实注意到从 IInfoObject 到您认为具体是什么的转换通常不起作用。特定的子类似乎更多地在库内部使用,而不是实际的外部可用类。
To open a WebI document to get the data you will need to follow a different route from the one you are headed down. Try something similar to the following:
I did notice that casts from a IInfoObject to what you think it specifically is, does not usually work. The specific children classes seem to be used internally to the libraries more than as actual externally usable classes.