Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: How to show formula result in Bold Post Reply Post New Topic
Author Message
Mailman
Newbie
Newbie
Avatar

Joined: 21 Apr 2008
Location: United Kingdom
Online Status: Offline
Posts: 12
Quote Mailman Replybullet Topic: How to show formula result in Bold
     Posted: 22 Apr 2008 at 12:56am
I have created a formula illustrated below but wish to display the Else part of the condition to show up in bold or different colour so the result would be "Session Title over 35 = 38.00" .Can anybody help .
 
Local StringVar sessionTitle;
Local NumberVar sessionLength;

sessionTitle := {stcsessd.full_desc};
sessionLength := Length ({stcsessd.full_desc});

If sessionLength < 36 Then
   sessionTitle
Else
   "Session Title over 35" +" = "+ CStr (sessionLength)

IP IP Logged
mpalecek
Newbie
Newbie
Avatar

Joined: 28 Feb 2008
Location: United States
Online Status: Offline
Posts: 9
Quote mpalecek Replybullet Posted: 22 Apr 2008 at 5:13am
You will have to create another formula for the formating. In the format editor window for that field try this:
 
Local numberVar sessionLength;
sessionLength := Length( {stcsessd.full_desc});

If sessionLength < 36 Then
   crRegular
Else

   crBold

IP IP Logged
Mailman
Newbie
Newbie
Avatar

Joined: 21 Apr 2008
Location: United Kingdom
Online Status: Offline
Posts: 12
Quote Mailman Replybullet Posted: 22 Apr 2008 at 6:25am
Worked a treat ,many thanks .
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