简体   繁体   English

Crystal报告变量问题

[英]Crystal reports variable issue

I have the below report structure 我有以下报告结构

Report Header- Variable set to 0 Page Header- Section supressed if variable is 1(which means suppress on last page suppression formula is 报表标题-变量设置为0页面标题-如果变量为1,则该部分无效(这意味着最后一页抑制公式为

WhilePrintingRecords;
numberVar variable1;
if variable1=0 then
FALSE
else
TRUE;

Report footer- variable set to 1 报告页脚-变量设置为1

Now the fun is on one of the user machines, the Page header gets suppressed on all pages. 现在,有趣之处在于其中一台用户计算机上,在所有页面上都隐藏了页眉。 If we refresh, then the page header gets displayed. 如果刷新,则会显示页面标题。 It happens randomly and I am not able to research as the page header gets displayed properly once I start playing with the report. 它是随机发生的,一旦我开始处理报表,页面标题就会正确显示,因此我无法进行研究。

I can put a simple fix to ignore the variables and suppress the page header contents on the last page but I want to know what is causing this issue. 我可以放一个简单的修补程序来忽略变量,并在最后一页上隐藏页眉内容,但我想知道是什么导致了此问题。 Is there a cache for the variable setting that is causing this confusion? 是否存在导致此混乱的变量设置的缓存?

Yes Dear, 是的,亲爱的,

This is definately happened, because of your condition. 由于您的情况,这一定会发生。

numberVar variable1;
if variable1=0 then

This give one time true and second time false. 这使一次为真,第二次为假。 Good to use a database variable or create a variable, give formula as below and, put in to detail section. 使用数据库变量或创建变量,按如下所示给出公式,然后放入详细信息部分中,非常好。 And use this variable into here. 并在此处使用此变量。

var i = WhilePrintingRecords;

(this is not exact, but for your understanding, just check links) (这不是确切的,但是为了您的理解,请检查链接)

Before you start or doing something, just read these links: 在开始或做某事之前,请阅读以下链接:

How does whileprintingrecords in Crystal Reports translate to SQL 在Crystal Reports中打印记录时如何将其转换为SQL

http://pic.dhe.ibm.com/infocenter/rsawshlp/v7r5m0/index.jsp?topic=%2Fcom.businessobjects.integration.eclipse.designer.doc%2Fhtml%2Ftopic738.html http://pic.dhe.ibm.com/infocenter/rsawshlp/v7r5m0/index.jsp?topic=%2Fcom.businessobjects.integration.eclipse.designer.doc%2Fhtml%2Ftopic738.html

http://www.infragistics.com/community/forums/t/64879.aspx http://www.infragistics.com/community/forums/t/64879.aspx

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

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