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
WhilePrintingRecords;
numberVar variable1;
if variable1=0 then
FALSE
else
TRUE;
Report footer- variable set to 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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.