Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9680

Re: Problem with Dynamic Images in CR v14

$
0
0

See if the following will help:

 

 

1. Open the report in the Crystal Reports Designer.


2. Create a formula called "Location" that contains a temporary path string to an image file. For example, "C:\Images\Image1.jpg".


3. Right-click the image on the report and click 'Format Graphic'. The 'Format Editor' dialog box appears.


4. In the 'Picture' tab, click the 'Graphic Location' conditional formula button. The Format Formula Editor appears.


5. Call the "Location" formula from this conditional formula.


6. Save changes to the report.


7. In your application, you can now change the location of the image file at run time, by modifying the text in the "Location" formula programmatically using the following code:


myReport.DataDefinition.FormulaFields.Item("Location").Text = "C:\Images\Image2.jpg"

 

 

 

- Ludek

Senior Support Engineer AGS Product Support, Global Support Center Canada

Follow us on Twitter

Got Enhancement ideas? Try the SAP Idea Place

Share Your Knowledge in SCN Topic Spaces


Viewing all articles
Browse latest Browse all 9680

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>