QR码集成在jasperReport中 [英] QR Code integration in jasperReport

查看:259
本文介绍了QR码集成在jasperReport中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用JAVA为我的计费桌面应用程序生成JasperReport但是,我在jasper 6.0.3版本的报告中看不到QR Code图标;在预览中,它显示QR码,但不显示在真实报告中。

I am generating the JasperReport for my billing desktop application using JAVA but, I can't see the QR Code icon in the report in jasper 6.0.3 version; In the preview it is showing the QR Code, but not in the real report.

请问任何人都可以提出这个想法和QR码JAR文件吗?

Please can anyone suggest the idea and QR Code JAR files?

推荐答案

最后我找到了这个问题的答案,

Finally I found the answer for this question,

我们需要使用jar文件导入内置的jasperReport二维码
这些是jar文件到使用Jasper报告生成QR码。

We need to use the jar files to import the inbuilt jasperReport QR Code These are the jar files to generate the QR Code with Jasper report.

此jar文件也适用于jasper报告,没有任何例外。

Also this jar files working for the jasper report without any exceptions.

然后我们必须从碧​​玉报告元素中拖放QR码。然后我们可以使用xml定义指定的参数。

then we have to drag and drop the QR-Code from the jasper report Elements. and then we can define specified parameters using the xml.

       <componentElement>
            <reportElement x="547" y="-5" width="115" height="83" uuid="f5bf25f8-2967-4e4e-bfa2-7879a3275e1c"/>
            <jr:QRCode xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd">
                <jr:codeExpression><![CDATA["Customer No: " + $F{CUST_NO}]]></jr:codeExpression>
            </jr:QRCode>
        </componentElement>

它为我工作。

这篇关于QR码集成在jasperReport中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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