Displaying an image in a crystal report using a physical path

I am using vb.net and access. in which I have one field in which I only saved the path of this image. Now I want to display this image in Crystal Report dynamic.so, what should I do? I want to get the image path in the crystal report and display it.

try to show me the code so i can identify

answer me soon

thank

0


source to share


2 answers


Do not use physical paths with CR directly. Save the image as data or in a binary field in your database and show it.

Here is a code project solution using data:



http://www.codeproject.com/KB/vb/Image_in_Crystal_Reports.aspx

It's simple, C # and a little old, but I think you are getting the trick.

+1


source


This works in a later version of Crystal Reports (I am using XI R2)

  • On the Insert Tools toolbar, select Insert Picture and insert any old picture into the report.
  • Right click on the image and select Format Plot
  • On the Image tab, select the "formula button" next to Graphic layout
  • In Formula Workshop, you will be able to select the database column that contains your file path.


When you view the report, it should dynamically load images for each record.

Edit . I found a link it might be helpful.

+8


source







All Articles