Link to home
Start Free TrialLog in
Avatar of djtony
djtony

asked on

Question about dynamic photo showed in Crystal report 9 prof

hi all,

i have a question about dynamic photo showed in Crystal report 9 prof,

in my case,
i am using CR9's database expert to connect to sybase directly without any VB or VB.code
and
i want to show a boy photo when get a value from database is "Male",
if get a "Female" value then show a girl photo.

for example
if TABLE.Gender = "Male"
SHOW  boy picture
else if TABLE.Gender ="Female"
SHOW girl picture

should i use the formula to fulfill this task
and how to do that ?

thanks

tony
Avatar of janmarini
janmarini

I will assume that your table contains the following info:

TABLE
ID     GENDER    BLOB/IMAGE
1      Female     girl
2      Male         boy

//Your New Formula Field (@ShowPicture)
if {TABLE.Gender} = "Male" then
   {Table.boy}
else if {TABLE.Gender} ="Female"
   {Table.girl}







ASKER CERTIFIED SOLUTION
Avatar of RickJ
RickJ

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of djtony

ASKER

Thanks a lot !

it's worked !
Thanks.
Glad I could help.