Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • 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!

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

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Many thanks to you for putting it together and to the forum members for taking the time to post their replies and give their time to help others. Their isn't another site that can touch it..."

Geography

Where in the world do Tek-Tips members come from?
yosteevo (IS/IT--Management)
5 Jul 12 20:09
For those of you who know how to replace an image with a different image within Crystal Reports, Please Help!!!


I am creating a report that will pull image files such PDF files etc. into the main report.

So far, I have imported an image placeholder that is located on my local server.
Its location will never change.

The image location is:
D:\BlazeLIMS Data\Attachments\BlazeLIMS\TestDoc\Place Holder Image for Image Capture.jpg

The database field that retrieves this file path is: {doc_file.df_filename}

{doc_file.df_filename} will link to the image that I will want to have on the main report each time it is run. This image will always be different as well.

I am attempting to use the "Graphic Location" formula box to write a formula that will replace the (Place Holder Image for Image Capture.jpg) with the image that is linked to my database field: {doc_file.df_filename}.



I greatly appreciate any help on this matter!!!


Stephen
CRCRCR (TechnicalUser)
5 Jul 12 21:15
You just have to create formula that returns the path to the image

For example

If {?Who} = "CB" THEN "C:\pix\CBSig.JPG"
Else "C:\pix\MRSig.JPG"

k.
lbass (TechnicalUser)
6 Jul 12 23:54
Please do not crosspost.

-LB
yosteevo (IS/IT--Management)
9 Jul 12 13:51
Sorry about crossposting.
Kim296 (MIS)
30 Aug 12 19:16

In your report, you can try creating a formula (Formula name example: IMG):

D:\BlazeLIMS Data\Attachments\BlazeLIMS\TestDoc\ + {doc_file.df_filename}

Close the formula
Then insert your dummy photo
Right Click and edit the photo
Choose Picture
Choose the Picture location (formula button) and enter: @IMG

That worked for me. Maybe it will work for you.
Kim296 (MIS)
30 Aug 12 19:18
It might be:
D:\BlazeLIMS Data\Attachments\BlazeLIMS\TestDoc\Place Holder Image for Image Capture.jpg + {doc_file.df_filename}

Sorry. Maybe one of those will work for you.
yosteevo (IS/IT--Management)
30 Aug 12 20:17
Thanks Kim296,

Here is what ultimately worked for me:
In the "Graphic Location" formula box, I used the following:

"\\server name\folder name\" & {doc_file.df_filename}



Stephen
yosteevo (IS/IT--Management)
30 Aug 12 20:27
Hi Kim296,

I do have another question in regards to resizing the images so they fit on one page instead of getting cut and going to the next page.
Currently my (.jpg image files) are being displayed on two pages due to their large size.


Is there a script that would auto-fit the images to constrain them to one page?





Thanks
Stephen
Kim296 (MIS)
31 Aug 12 8:26
Can you resize them by the drag and pull method or Format the Picture and change the width and height and Choose Not to Grow? Let me know if that works. I'm still learning myself.

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!

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