Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Display field values vertically Post Reply Post New Topic
Author Message
vgillis
Newbie
Newbie


Joined: 05 Mar 2013
Online Status: Offline
Posts: 10
Quote vgillis Replybullet Topic: Display field values vertically
     Posted: 21 Jun 2013 at 6:48am
Hi all..I don't know if this is possible or not..but any help would be so appreciated.

This is a scaled down version of my problem..

Two tables..

Person
id number
name

Activity
id number
activity

A person can have multiple activities.

Instead of the report printing a row for each activity like this..
id number, name, activity 1
id, number, name, activity 2

I would like it to print like this..
id number, name, activity 1, activity 2, activity 3...ect..

The number of activities a person can have varies..

Does anyone have any idea is this is possible and how to do it?

Thanks.
Veronica
IP IP Logged
praveeng
Senior Member
Senior Member
Avatar

Joined: 11 Jul 2011
Online Status: Offline
Posts: 165
Quote praveeng Replybullet Posted: 21 Jun 2013 at 9:48am
Praveen Guntuka,
praveen_guntuka@yahoo.com
IP IP Logged
Sastry
Moderator
Moderator
Avatar

Joined: 16 Jul 2012
Online Status: Offline
Posts: 537
Quote Sastry Replybullet Posted: 22 Jun 2013 at 5:59am
Hi
Yes, this is possible.  Do the following to achive desired format
 
1.  Insert a group on Id number
 
2. create following formulas to add or concatenate activity's
 
Create and place in id number group header and suppress
 
Whileprintingrecords;
stringvar act:=' ' 
 
Create and place in detail section and suppress
 
Whileprintingrecords;
stringvar act;
act:=act+{activity};
 
Create and place in id number group footer
 
Whileprintingrecords;
stringvar act;
 
Now suppress group header and detail sections and place id number, name, the 3rd formula in your group footer.
 
 
 
 
Thanks,
Sastry
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum