alexbelovtt
Programmer
I use Crystal 11 and visual basic.
I have main report that contains several subreports.
Some of subreports have section where I do display special characters. If that character displayed I do need display explanation on main report Page footer:
Main report:
Subreport 1
Subreport 2
Subreport 3 (with special characters)
Subreport 4
Subreport 5.
Main report page footer:
Here I do need display explanation of special characters if those characters have be displays in page of Subreport 3
I do need:
1. Reset variable in main report Page Header to 0
2. Change variable in Subreport 3 if special character printed to be more than 0
3. Read value of variable in main report page footer to display or not explanation.
Whatever I try, changes to variable are not visible in between main report and subreports.
To accomplish that I create formulas:
1. Page header of main report
2. In section of subreport 3, where those characters may be printed:
3. In page footer of main report I try to read that variable:
Sure I do something wrong.
Any suggestion will be helpful.
Thank you.
Alex.
I have main report that contains several subreports.
Some of subreports have section where I do display special characters. If that character displayed I do need display explanation on main report Page footer:
Main report:
Subreport 1
Subreport 2
Subreport 3 (with special characters)
Subreport 4
Subreport 5.
Main report page footer:
Here I do need display explanation of special characters if those characters have be displays in page of Subreport 3
I do need:
1. Reset variable in main report Page Header to 0
2. Change variable in Subreport 3 if special character printed to be more than 0
3. Read value of variable in main report page footer to display or not explanation.
Whatever I try, changes to variable are not visible in between main report and subreports.
To accomplish that I create formulas:
1. Page header of main report
Code:
WhilePrintingRecords;
Shared NumberVar LineCount:=0;
2. In section of subreport 3, where those characters may be printed:
Code:
Shared NumberVar LineCount;
IF {Required_Flag} = 'Y' THEN
LineCount := LineCount + 1;
LineCount
Code:
whileprintingrecords;
Shared NumberVar LineCount;
LineCount := LineCount;
Any suggestion will be helpful.
Thank you.
Alex.