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!

Insert Picture in Report

Status
Not open for further replies.

TTA23

MIS
Sep 26, 2006
41
US
I have an MS Access Db and CR Xi.

I have atable :
Product (ex:ABC12343)
ProductName (ex: Widget)
PathToPicture (ex: c;\picture\ABC12343.jpg)

I just want to list the item and see the picture when there is one. What I am listing is the item and the path to the picture.
In the report, How can I see the picture insteed of the path?
Thanks in advance.How can I replace in the report
 
From the Help file of Crystal XI and I quote,
A dynamic static OLE object is a picture or metafile that you access in Crystal Reports by use of a file path or URL. Typically, you use this option when you have the path to your pictures or metafiles stored as a string field in a database (that is, you do not have the actual objects stored in the database). You can also use this option when you have pictures or metafiles stored on a network share, and you know these objects change occasionally.

The functionality of these dynamic static OLE objects (or dynamic graphics) is created in Crystal Reports through the use of a conditional formatting formula that allows you to link to static OLE objects by reference.

Note:

This feature is activated when you refresh your report data; therefore, you may not notice a change in the static OLE object until you click the Refresh button in Crystal Reports.
When you schedule a report that contains a dynamic static OLE object in BusinessObjects Enterprise, the instances that are created contain the version of the static OLE object as it existed in your Crystal report when you scheduled it. BusinessObjects Enterprise does not update the object dynamically for each instance.
Reports that use an absolute or a relative path for a dynamic static OLE object are not supported in a BusinessObjects Enterprise environment for this release. If you plan to publish reports that contain dynamic static OLE objects to BusinessObjects Enterprise, it is recommend that you use URL links for your OLE objects.
Right-click the static OLE object that you inserted, and choose Format Graphic from the shortcut menu.
Note: You begin the process of making a static OLE object dynamic by inserting the object into your report as usual. This object becomes the default object. If Crystal Reports cannot find the dynamic reference to the object, it uses the default object instead.

In the Format Editor, click the Picture tab, and then click the Conditional Formula button adjacent to the Graphic Location label.
In the Formula Workshop, create the path to your static OLE object.
For example, if your path is stored in a database field, add that field to the formula.

Click Save and close to return to the Format Editor.
Click OK to return to your report.
Click Refresh to update the reference link to your static OLE object.


Cheers
paulmarr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top