Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Suppression Issue 1

Status
Not open for further replies.

northw

MIS
Nov 12, 2010
140
US
Hi all,
I have an issue with suppression record, I have a header(page header) which is suppressed "onlastrecord" as some other details in the report footer section should be displayed in the last page of the report, Now I have only one record for a user selection, which suppresses the page header, but when I comment that formula it works fine for that selection, but effects other selection range.
How can I change the formula to to accomplish this issue?

Thanks in Advance
 
Thanks Ian for the reply, It did not work for me Ian.
But I applied the approach mentioned by Lbass:


//false:
whileprintingrecords;
booleanvar flag := false;

//false to be placed in the report header and suppressed:
whileprintingrecords;
booleanvar flag := false;

//true to be placed in the report footer_b and suppressed:
whileprintingrecords;
booleanvar flag := true;

Then in the section expert->page footer->suppress->x+2, enter:

whileprintingrecords;
booleanvar flag;
flag = true; //note no colon

-LB

It worked like a gem.
Thanks Lbass...and Ian.

One last question, I am little confused, how it works, If some one can explain how it works, I would appreciate it.

Thanks.
 
YOu are effectively setting a switch.

The first formula false makes sure the switch is off at the beginning of the report.

The second true then then switches on only when the report comes to the end and prints the report footer.

Because the Report footer is excecuted before the page footer on the last page, the condition in the PF section suppress is now true and PF is suppressed.

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top