简体   繁体   English

在Java Crystal Reports上打印不同的值

[英]Different value printed on Java Crystal Reports

I am having a problem with my java program trying to print my crystal report. 我的Java程序尝试打印我的Crystal报告时遇到问题。 I generated a preview of the report on the crystal report editor and the value says 11.80 as seen on the picture. 我在Crystal报表编辑器上生成了该报表的预览,该值显示为11.80,如图所示。

Crystal Report编辑器的原始预览 Then, I tried to preview the report from my java program which only just call the report and display it on a jpanel, I got a 12.20 as a result. 然后,我尝试从Java程序预览报告,该程序仅调用报告并将其显示在jpanel上,结果是12.20。 How is that possible? 那怎么可能? Nothing has been modified in the report programatically upon preview aside from the database tables ( which points out to a single database) but it yields a different result. 除数据库表(指向单个数据库)外,预览时对报告中的所有内容都没有进行编程修改,但它会产生不同的结果。 I'm using crystal reports xi. 我正在使用水晶报表xi。

在此处输入图片说明

Solved the issue. 解决了这个问题。 Not sure what happened, but after a couple of report editing, they arrived on the same answer. 不知道发生了什么,但是在几次报告编辑之后,他们得出了相同的答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM