I've written a report in Crystal v8.5. I'm trying to conditionally add an additional page at the end of a group to facilitate duplex printing. I've created a formula that assigns a value to a shared boolean variable based on the value of the pagenumber:
shared booleanVar BlankEnd;
if remainder (pagenumber, 2) <> 0 then BlankEnd := true
The correct value is being assigned to the variable. In the next section, I'm conditionally adding a new page after, also when remainder (pagenumber, 2) <> 0. My problem is that, when I show the value of the variable in this next section, it's always <false>.
All that's happening here is the conditional page add; there are no other formulas being run between when the value of the variable is assigned and when I'm showing it.
Also, I created another section between the section where the value is applied to the variable and when the page is conditionally added, showed the variable there, and the assigned value shows correctly.
Any thoughts would be greatly appreciated.
-Dave
shared booleanVar BlankEnd;
if remainder (pagenumber, 2) <> 0 then BlankEnd := true
The correct value is being assigned to the variable. In the next section, I'm conditionally adding a new page after, also when remainder (pagenumber, 2) <> 0. My problem is that, when I show the value of the variable in this next section, it's always <false>.
All that's happening here is the conditional page add; there are no other formulas being run between when the value of the variable is assigned and when I'm showing it.
Also, I created another section between the section where the value is applied to the variable and when the page is conditionally added, showed the variable there, and the assigned value shows correctly.
Any thoughts would be greatly appreciated.
-Dave