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

How to suppress one section of a subreport in the main report 1

Status
Not open for further replies.

WenS

Programmer
Oct 29, 2008
6
US
Hi All,
I'm new to CR. I have a group header (#1a) in a subreport with some general information. I want to suppress this header in the main report (but want detail of the supreport displayed), and I want to have the header displayed when the subreport is open. How do I do this? I use CR XI.

Appreciate your help.

WenS
 
This is unclear. If the subreport is not on-demand, then whatever sections of the subreport you have not suppressed will display in the main report, i.e., the subreport is always open, if it is not an on-demand subreport.

Are you trying to say that you have a header in the main report that you want suppressed on the pages where the subreport is displayed because you want the subreport header displayed instead?

-LB
 
Thanks for the reply. The subreport is not on demand. It has it's own header (which should look the same as that of the main report), but the header of the subreport should be displayed ONLY when the subreport gets double clicked in the main report to be displayed in full screen whereas the the detail on the subreport should always be visible.

WenS
 
Create a formula and place it in the main report page header and suppress the formula:

whileprintingrecords;
shared booleanvar flag := true;

Then in the subreport->section expert->report header->suppress->x+2, enter:

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

-LB
 
This way, the page header also get suppressed. I then created a dummy group and moved formula
whileprintingrecords;
shared booleanvar flag := true;
to the dummy group header. It works now.

Many thanks to LB !
 
No, the page header would not get suppressed. I suggested suppressing the formula not the page header.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top