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

Need to change textobject in Page Header based on current section

Status
Not open for further replies.

roerunner

Programmer
Feb 1, 2006
10
US
Using CR for VS.NET 2003

I have a page header for my report that contains the company logo/address as well as the title of the report. This report really contains two separate reports, which are in two different subreports in separate section. I need to change the title of the report in the page header based depending on the section. How do I do this?

Thanks!



-----
Kelly
 
Actually, you can fake page headers in the subreports, so it will change with the subreport.

In the subreport:
1. Group on the field used to link to the main report (or one of the fields if there are multiple in the link.) Make this the outer-most group.
2. Turn on Repeat Group Header on Each Page for this group.
3. Put your page header information in the group header.

-Dell

A computer only does what you actually told it to do - not what you thought you told it to do.
 
Thanks, Hilfy, that make sense. I have another report, that has the same issue, but it's actually just different sections (not subreports) in the same report. For example:

Section 1
Section 2
Section 3
Section 4

I would like sections 1 and 2 to have one header, and then sections 3 and 4 to use a different one. FWIW, any section may or may not span across multiple pages.

Any additional help you can provide would be great!

Thanks!

-----
Kelly
 
One other note on my previous message -- assume that the sections have no datasource whatsoever, that they just have hard-coded text and some text objs /parms that are filled in programmatically.

-----
Kelly
 
I can't think of anyway to do this with that specific configuration.

-Dell

A computer only does what you actually told it to do - not what you thought you told it to do.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top