Solved

Question about dynamic photo showed in Crystal report 9 prof

Posted on 2006-06-18
4
263 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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 …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

757 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

21 Experts available now in Live!

Get 1:1 Help Now