I've been asked to modify a Crystal Report that has a regulatory statement. When the report is rendered, regardless of the page where the statement is rendered, the given page footer contents must be suppressed. Is there a way to hide the page footer when the regulatory statement is displayed? The statement is an OLE object in Group Footer 3 of the report.
I've created a formula as follows:
WhilePrintingRecords;
booleanVar SuppressFooter := false;
I've placed the formula in the report header, mainly to initialize the variable.
I created a similar formula and placed it in group footer 3 and set the variable to true. I then reference the group footer 3 formula in the Suppress formula of the page footer section expert. Unfortunately, this suppresses the page footer for all pages associated with a given record.
Is there an operand that can be used that states - When group footer 3 is printed, set SuppressFooter:= true? Ideally, I would insert this logic in the Suppress formula of the page footer section expert.
How would I achieve the intended functionality?
Update It was suggested to move @SuppressFooter to the Group Header 3. It's defined as
WhilePrintingRecords;
BooleanVar SuppressFooter := false;
I also added @SetSuppressFooter to the Group Footer 3. It's defined as:
WhilePrintingRecords;
BooleanVar SuppressFooter := true;
The formula used to suppress Page Footer is defined as:
WhilePrintingRecords;
{@SetSuppressFooter} = true;
Snippets of the report structure are also included:
The above logic is still not suppressing the page footer when Group Footer 3 is rendered.