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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Suppress Page Footer when no Report Header...

Status
Not open for further replies.
Aug 2, 2005
31
US
Any suggestion for getting the page footer fields to print based on the following report configuration?

RHa - blank
RHb - SR1 - subreport
PH - blank - suppressed
Groups 1- 8, including details, GHs, GFs - main groups of the main report.

RF - SR2 - subreport in report footer
PF - Common footer for all 3 report areas - SR1, Main, and SR2

There are some items there that should only print when SR1 print, or when Main report print, or when SR3 print.

Any thouhgts on how I can get these fields to print as needed based on when these other reports prints? Here is an example:

Page 1 -infomation from SR1 - Page footer should have unique_text1 and page N of M
Pages 2-4 - information from Main report - Page footer should have unique_text2 and Page N of M
Pages 5-9 - information from SR2 - Page footer should have Page N of M and unique_Text3

And when one section is absent, their unique_texts should be absent as well, but page NofM should continue to print.
Note:someof the unique text are not from a db, they are free static texts
any thoughts should be appreciated.
Thank you.
 
Consider using shared variables.

For instance, in a section prior to running the subreport set a shared variable, such as:

whileprintingrecords;
Shared boolean sub1:=false

Then in the subreport place the following:

whileprintingrecords;
Shared boolean sub1:=True

Now you can conditionally suppress based on this variable, as in:

whileprintingrecords;
Shared boolean sub1;
sub1

Here I'm using a boolean, so if the subreport ran, the variable will be true, otehrwise false.

Hopefully this helps.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top