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!

Report formatting (template vs. subreport) 1

Status
Not open for further replies.

ipm

Programmer
Apr 5, 2005
16
DE
I have to create a lot of reports all based on the same template (report header, logo, ...). The only different part is the details section. From time to time the template will be changed so ideally such a changes should be automatically applied to all reports. I am new in Crystal and I found two solutions.
1. Use a template. Very good but I couldn't find a way to reapply updated template to all reports automatically.
2. Subreports. Good as well but I couldn't find how to repeat subreport page headers on every page in this case.

Can anyone help me in any of these problems or suggest better way to do this formatting?
 
Edit your subreport and create a fake page header, {@FakePH}.

Code:
//@FakePH
WhileReadingRecords;
1

Then insert a Group on {@FakePH} and click Repeat Group Header on each page

If you have other groups already, then from the report design tab, just click and hold the {@FakePH} group header section on the left and drag it the top of the group, making it Group 1.

This is now your new page header.

Cheers,
-LW
 
Thanks kskid,

Sorry for stupid question, but I am really new in Crystal. I know how to create an additional page header, but how to assign this code?
 
[ol][li]Edit the subreport.[/li]
[li]Click on Insert->Group.[/li]
[li]From the Insert Group Window, click on the drop down window and click on @FakePH.[/li]
[li]On the bottom of the window click on Repeat Group Header on each page[/li][/ol]

Cheers,
-lw
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top