Solved

Question about dynamic photo showed in Crystal report 9 prof

Posted on 2006-06-18
4
264 Views
Last Modified: 2006-11-18
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
0
Comment
Question by:djtony
  • 2
4 Comments
 
LVL 7

Expert Comment

by:janmarini
ID: 16931829
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}







0
 
LVL 8

Accepted Solution

by:
RickJ earned 200 total points
ID: 16932022
OR...
If you have the boy/girls pics embedded in the report then you could set a suppression formula for them.
Right click the graphic.
Format Graphic...
Click the Suppress formula x-y button.
For girl put
TABLE.Gender = "Male"
For boy put
TABLE.Gender ="Female"



0
 

Author Comment

by:djtony
ID: 16932255
Thanks a lot !

it's worked !
0
 
LVL 8

Expert Comment

by:RickJ
ID: 16932895
Thanks.
Glad I could help.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now