OpenERP Jasper Reports导入外部库 [英] OpenERP Jasper Reports import external library

查看:115
本文介绍了OpenERP Jasper Reports导入外部库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将OpenERP与Jasper Report模块一起使用.问题是要获取单词生成的页面数量.因此,我找到了解决方案:将我自己的库导入iReport * .jar文件,并使用其中的一些方法.但是我遇到了一些问题.显然,OpenERP的Jasper Reports中没有使用iReport的库类路径,而且我总是遇到无法解析类"异常.我试图将* .jar复制到'jasper_reports/java/lib'文件夹中,但是无效.也许有人面对这个问题?问题是:如何在japser_reports中导入自己的Java库?或者,理想情况下,获得另一种方法来打印单词的页面数量.

I use OpenERP with Jasper Report module. The problem is to get amount of generated pages in words. So I found the solution: import in iReport my own library in *.jar file and use some methods from it. But I get some problems. Аpparently, iReport's classpath to libraries didn't used in Jasper Reports in OpenERP and I always get 'Unable to resolve class' exception. I tryed to copy *.jar in 'jasper_reports/java/lib' folder, but it ineffectually. Maybe someone faced to this problem? And the question is: How to import my own java libraries in japser_reports? Or, ideally, get another way to print amount of pages in words.

推荐答案

创建不带包的Java类.放入一个JAR文件并进行设置.

Create your java class without a package. Put in a JAR file and set it up.

这篇关于OpenERP Jasper Reports导入外部库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆