Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Reporting images in Crystal Reports 2008 Post Reply Post New Topic
Author Message
Yosteevo777
Newbie
Newbie
Avatar

Joined: 23 Apr 2012
Location: United States
Online Status: Offline
Posts: 33
Quote Yosteevo777 Replybullet Topic: Reporting images in Crystal Reports 2008
    Posted: 05 Jul 2012 at 1:54pm
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
Stephen Waichulis
LIMS Database Administrator
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet Posted: 06 Jul 2012 at 5:05am
You could try something like this:
 
if IsNull({doc_file.df_filename}) then
'D:\BlazeLIMS Data\Attachments\BlazeLIMS\TestDoc\' + {doc_file.df_filename}
else
D:\BlazeLIMS Data\Attachments\BlazeLIMS\TestDoc\Place Holder Image for Image Capture.jpg
 
-Dell
IP IP Logged
Yosteevo777
Newbie
Newbie
Avatar

Joined: 23 Apr 2012
Location: United States
Online Status: Offline
Posts: 33
Quote Yosteevo777 Replybullet Posted: 06 Jul 2012 at 7:55am
Hi Dell,

Thank you for your reply.

I did try the formula and I am still having trouble getting my placeholder image to update or to be replaced with the image file that my database is feeding my subreport.


Perhaps there is another way to pull images, PDFs, Word/Excel files from a database to appear in a report?


Stephen




Edited by Yosteevo777 - 06 Jul 2012 at 7:58am
Stephen Waichulis
LIMS Database Administrator
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet Posted: 06 Jul 2012 at 8:42am
Which version of Crystal are you using?
 
-Dell
IP IP Logged
Yosteevo777
Newbie
Newbie
Avatar

Joined: 23 Apr 2012
Location: United States
Online Status: Offline
Posts: 33
Quote Yosteevo777 Replybullet Posted: 06 Jul 2012 at 9:08am
Crystal Reports 2008
Stephen Waichulis
LIMS Database Administrator
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet Posted: 06 Jul 2012 at 11:13am
Would you please post the exact formula that you're using to set the picture location?
 
-Dell
IP IP Logged
Yosteevo777
Newbie
Newbie
Avatar

Joined: 23 Apr 2012
Location: United States
Online Status: Offline
Posts: 33
Quote Yosteevo777 Replybullet Posted: 06 Jul 2012 at 12:01pm
If IsNull({doc_file.df_filename})
Then
'D:\BlazeLIMS Data\Attachments\BlazeLIMS\TestDoc\Place Holder Image for Image Capture.jpg'
Else
'D:\BlazeLIMS Data\Attachments\BlazeLIMS\TestDoc\ + {doc_file.df_filename}'

Stephen Waichulis
LIMS Database Administrator
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet Posted: 09 Jul 2012 at 8:33am
Have you checked in the field doc_fil.df_filename to see whether it has data in it?  If you're running this from a web app, the web application server needs to have access to this folder.
 
-Dell
IP IP Logged
Yosteevo777
Newbie
Newbie
Avatar

Joined: 23 Apr 2012
Location: United States
Online Status: Offline
Posts: 33
Quote Yosteevo777 Replybullet Posted: 11 Jul 2012 at 7:28am
Thanks hilfy,

All of our end users will be within our company's closed network.
The folder that contains the files that are read by Crystal Reports through the database field {doc_file.df_filename} is a shared folder located on one of our department's local servers. All users have read/write privileges to the folder.

I'm assuming my issue is related to my syntax being incorrect that I'm using within Crystal Reports. I have tried my formula in both the Graphic Location formula box as well as the Hyperlink information formula box.

I even tried local files on my desktop and my formula still did not replace the OLE placeholder graphical image.
Stephen Waichulis
LIMS Database Administrator
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.