Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Images in Crystal

Status
Not open for further replies.

Mags2010

Technical User
Jun 16, 2010
12
CA
I'm trying to generate an icon in Crystal based on some coding or special instructions. For example: I am trying to create a schedule. If the word "flight" is used or something to that extent then an airplane icon will appear on the report. Has anyone ever tried this before? If so, please share.

Thanks,

Maggs
 
I think about he closest you can get is having a picture in the report that is suppressed unless the condition is met. That is just a guess without knowing the data.
 
IF you have the pictures in a directory, you could insert an image from a file, right click on the image, choose Format Picture and then use the Graphic Location 'x+1' button on the Picture tab and enter a formula to dynamically display images.

Something like:

IF {table.field} = "flight"
then "X:\Images\airplane.jpg"
else
IF {table.field} = "rail"
then "X:\Images\train.jpg"
else
IF {table.field} = "drive"
then "X:\MoreImages\mercedes.jpg"
else "X:\default.jpg"
 
Thanks for both suggestions. I'll give it a try
 
I don't do pictures very often, forgot about the 'Graphic Location' option.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top