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

Linking Images

Status
Not open for further replies.

mficalora

Programmer
Nov 5, 2002
5
US
I have a report that has several images on it. The reports images will change depending on the customer. Can I link an image to a filename instead of bringing it directly in. I am thinking of a generic naming convention:

c:\myproj\images\Logo.bmp
c:\myproj\images\Header.bmp
c:\myproj\images\Footer.bmp

Thanks in advance.
 
With version 8.5 and prior, to my knowledge you cannot do this. The images either have to be directly entered into the report, or linked via a database blob field.
-Bruce Seagate Certified RCAD Specialist.
-Bruce Thuel-Chassaigne
roadkill150@hotmail.com
 
Thanks Bruce,

I did some more poking around and found the following:

Select Insert and choose Ole Object. Choose "Create from File" and check the Link checkbox. Then type in the file name or browse to the file. Click OK.

Now each time the report is run a simple dialog shows up that says "Updating ActiveX Objects". When the report displays, the new object shows!

I did this in V8.0.1.
 
Hey there,
Sorry my bad, i thought you were looking for a dynamically changing object based on the report field, ie: bob shows up, his image displays, etc.
-Bruce =) Seagate Certified RCAD Specialist.
-Bruce Thuel-Chassaigne
roadkill150@hotmail.com
 
I had a similar problem, needing to fetch different files whose names were stored in a database. The only way I found was to convert the report to a Report Designer Conponent (.dsr) and work on it within VB.

It then worked just fine, displaying images stored for each different property.
 
I am using Crystal reports from an ASP application using RDC. the first solution (ie linking an OLE object ) would it work for jpg files? The second solution (ie showing picture using section format events) would it work for ASP application using RDC? Can I place gif images in a report?
Looking forward to your answres...


Cheers
Krishna Kumar

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top