Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Conditional Indent Post Reply Post New Topic
Author Message
swingking03
Newbie
Newbie


Joined: 13 Apr 2012
Online Status: Offline
Posts: 8
Quote swingking03 Replybullet Topic: Conditional Indent
     Posted: 13 Apr 2012 at 10:32am
Is there a way to indent a field under certain criteria.  If so, what is the formula and where do you place it? 
 
Example: I am looking to indent a name field if it not equal to the group header, like below:
 
Company A (Group Header)
    Sub-Company 1 (Name field)
    Sub-Company 2 (Name field)
 
 
 
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 15 Apr 2012 at 2:20pm
Create a formula that looks something like this:
 
if {company name} <> {sub-company name} then '    ' + {sub-company name} else {sub-company name}
 
Add however many spaces you want for the indent.  Use this formula instead of the field to show the sub-company name.
 
-Dell
IP IP Logged
swingking03
Newbie
Newbie


Joined: 13 Apr 2012
Online Status: Offline
Posts: 8
Quote swingking03 Replybullet Posted: 16 Apr 2012 at 5:05am
that worked...thanks so much!
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