Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Dynamic Images-forumula question Post Reply Post New Topic
Author Message
danielboone
Newbie
Newbie
Avatar

Joined: 09 Feb 2012
Online Status: Offline
Posts: 4
Quote danielboone Replybullet Topic: Dynamic Images-forumula question
     Posted: 15 Feb 2012 at 8:53am
I am testing out a report that will pull images dynamically from graphic files located in the folder.  Below is my test formula.
 
if {IV00101.ITEMNMBR}="pump-10000" then "G:\Pictures\temp\pump-10000.bmp" else
if {IV00101.ITEMNMBR}="pump-10004" then "G:\Pictures\temp\pump-10004.bmp"
 
This works fine, but would be very long & tedious if I had a lot of numbers.  How do you convert this to a dynamic formula so it can essentially link the ITEMNMBR to the physical file name?  Somehow it needs to pass the itemnumber into the path statement.
 
Thank you.
 


Edited by danielboone - 15 Feb 2012 at 8:54am
IP IP Logged
kostya1122
Senior Member
Senior Member
Avatar

Joined: 13 Jun 2011
Online Status: Offline
Posts: 475
Quote kostya1122 Replybullet Posted: 15 Feb 2012 at 9:47am
not sure if this will work i rarely deal with images.
try to create a formula like
"G:\Pictures\temp\"+{IV00101.ITEMNMBR}+".bmp"

IP IP Logged
danielboone
Newbie
Newbie
Avatar

Joined: 09 Feb 2012
Online Status: Offline
Posts: 4
Quote danielboone Replybullet Posted: 16 Feb 2012 at 12:11pm
Awesome!  Worked like a charm.  Thank you!
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