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

Import subreport

Status
Not open for further replies.

dasiga222

IS-IT--Management
Sep 22, 2003
68
US
Hi
I am using Crystal reports 10
Whenever I am importing a sub report into a main
report
The page header section of the sub report is being changed
into report header section
I would like to avoid that
before the import data was there in the page header section of the sub report
After sub report is imported , the page header data of the
sub report is seen as report header data of sub report

How can I avoid this ?

thanks
 
Unfortunately, that is the nature of subreports, which in a way is nice because it's one less section to worry about.

If your subreport only prints on one page, then it should not be a problem whether its on the report header or not. It only prints once and that's it.

If however, your subreport goes on for several pages and you need the column headers to repeat on each successive page, then do the following

Create a formula for a fake page header

//FakePH
WhileReadingRecords;
1

Insert a Group on {@FakePH}

Delete the Groupname from the design page Group Header1 section.

Move you column heading from the report header to the group1 header.

Suppress the Group Footer1 if you don't need it

That's it. Now you have your Page headers on your subreport.


Cheers,

-larry
 
When you set up the group on Larry's Fake PH formula, be sure to format it to "Repeat group header on each page."

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top