×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Dynamic graphic location

Dynamic graphic location

Dynamic graphic location

(OP)
Hello forum members,

I have a crystal report that uses dynamic graphic location. We store images for different states in USA. Some of the state images are not in the windows file system but we have records for those states in the database. We can store the images to make it work but I want to know how to display a blank or suppress the OLE object if the image is missing for that state.

Thanks in advance.

RE: Dynamic graphic location

You could consider storing the images as blobs in the database. This way a NULL value would indicate the missing of the image.

RE: Dynamic graphic location

(OP)
Beltmanjr,
Thanks for taking your time.That is a possible solution but we will not be going in that direction. Please let me know if there are any other alternatives. Thanks a lot.

RE: Dynamic graphic location

How do you currently dynamically set the image path?

RE: Dynamic graphic location

The problem with dynamic images inside Crystal Reports is that if the calculated image path doesn't exist, then the original image is displayed.

So use as your original image, the picture you want to display if the state can't be found.

my cViewIMAGE utility returns a NULL image if the file doesn't exist.  Seems to be clearer that way

Editor and Publisher of Crystal Clear
www.chelseatech.co.nz/pubs.htm

RE: Dynamic graphic location

(OP)
Chelseatech,
I used the cviewimage utility for the images that do not exist and it worked. Thanks a lot for the help.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close