Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Adding an image via a formula Post Reply Post New Topic
Author Message
macke
Newbie
Newbie


Joined: 19 Mar 2009
Location: United Kingdom
Online Status: Offline
Posts: 14
Quote macke Replybullet Topic: Adding an image via a formula
    Posted: 02 Sep 2010 at 11:39pm
Hi
 
I have to insert an image in my report according to the value in a particular field.
 
If @Length = "F" then insert a particular jpeg image, else if @Length = "S" then insert a different image.
 
How can I do this?
 
macke
IP IP Logged
saoco77
Senior Member
Senior Member


Joined: 26 Jun 2007
Online Status: Offline
Posts: 104
Quote saoco77 Replybullet Posted: 03 Sep 2010 at 1:49am
One option would be to insert both images onto the report and then suppress the first image if @Length = "S" and suppress the second image if @Length = "F"
IP IP Logged
macke
Newbie
Newbie


Joined: 19 Mar 2009
Location: United Kingdom
Online Status: Offline
Posts: 14
Quote macke Replybullet Posted: 03 Sep 2010 at 2:01am
Hi
 
I was just starting to go down that track myself. Can't get the formula to work at the moment.
 
MACKE
 
IP IP Logged
macke
Newbie
Newbie


Joined: 19 Mar 2009
Location: United Kingdom
Online Status: Offline
Posts: 14
Quote macke Replybullet Posted: 03 Sep 2010 at 2:49am

Now works fine.

Right click on graphic and select "FORMAT GRAPHIC" Click on the formula button and enter If {@Lefts}="F" THEN TRUE.
 
Obviously depends on which logo is on the top.
 
MACKE
 
IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.035 seconds.