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!

creating groups based on a number passed to crystal reports by a parameter

Status
Not open for further replies.

JamesFlowers

Programmer
Mar 23, 2001
97
GB
I have to create a report that has to be printed x times , but each time a 'new' report has to be printed , a different header is printed based on the number passed in by a paramter

ie

param =2

group 1 is called client copy (is easy bit if then else statement)
group 2 is called customs copy

any ideas how to implement this

I was thinking a new group based upon an increment from this parameter?

cheers

James Flowers
Crystal Consultant
 
If the number of copies entered will always be a small number (say between 1 and 10) you can try this:
Create multiple page headers and display only the needed one by suppressing all others based on the parameter passed.
If the Parameter name is [tt]PrintNumCopies[/tt]

Page Header 1 Client Copy
Suppress condition for PH1 [tt]{?PrintNumCopies}<>1[/tt]
Page Header 2 Customs copy
Suppress condition for PH2 [tt]{?PrintNumCopies}<>2[/tt]
and so on...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top