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!

Pages in Different Colours

Status
Not open for further replies.

nickotine

Programmer
Nov 27, 2001
23
GB
I have been asked to replicate a one page Form. I need to create 4 pages, each page is a different colour.

I have created the Form in Crystal and now need to, on print produce a different colour for each page of the same Form.

Please help.

Nickotine
 
In the section expert (format->section) you can select the report header->color->background->x+2 and enter:

if pagenumber = 1 then crYellow else
if pagenumber = 2 then crRed else
if pagenumber = 3 then crBlue else
if pagenumber = 4 then crGreen

Then copy this formula and add it into every other section:
page header, group header, details, group footer. If possible suppress the page footer and report footer, since including these will result in a gap in the overall color of the page. The last page will only color up to the last record.

-LB
 
Aside from LB's instructions, since you've used a form, you might have used a New Page After for each section, and then set the background color for each section.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top