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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make image object variable in Crystal Reports 10

Status
Not open for further replies.

SarahVandenbroucke

Programmer
Mar 4, 2003
14
BE
Hi,

I wonder if the following is possible:

We have a table Person in our database, with the fields p_person and name. (p_person is the unique identifier)

We have a folder: C:\Pictures that contains a picture for each record in the table Person. The name of the picture file is the unique identifier of the record in the Person table, eg "123456.jpg". We do not want to store the pictures in the database!

Now we want a Crystal Report with a list of the persons from the table Person, their name and the picture from the folder C:\Pictures. Since each record has a unique identifier, p_person, and the image files are named p_person & ".jpg", we know what picture goes with what record.

How can you make the image object on your crystal report variable??

Any help would be much appreciated!

Thanks,
Sarah
 
Store the location as a hyperlink in your table, then insert it into the report, right click, select format text->Hyperlink Tab->A file

Keep in mind that if people are running this hyperlink from other machines, you wouldn't want to use explicitly drive mappings (C:), use the machine name (\\Macine1\pictures\...)

-k
 
Thanks for your reply, synapsevampire.

I tried it, but it didn't work.
I have put the hyperlink in the table, inserted it into the report and set the Hyperlink type to a file.

When running the report, I only get the hyperlink-text (\\Testmachine\123456.JPG), no image.
What am I doing wrong??

chelseatech,

Thanks for this information.
Do you have (good/bad) experience with this tool?
Do you know when purchasing this product, do all of our customers also have to purchase it too, or can we just install it with them?

Thanks!
Sarah
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top