dynamic images in crystal reports 9

Posted on 2003-11-25
Last Modified: 2008-01-09
how can i show images dynamically for each record in a report if i can get the path of the image in the query from database.
Question by:anilkumar7
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 9819237
only if you are creating the report at run time.  how are you delivering the report?

LVL 42

Expert Comment

ID: 9819252
Or you can store the image in the database as an OLE object and then CR will display fine.  Most db's support this but it may not be appropriate for your situation.
LVL 13

Expert Comment

ID: 9820349
you can accomplish this by using the RDC in VB. place an ole object and the database field that contains the image path into the detail section. then read this value out in a section event and modify the instance of the ole object accordignly. here is a sample in version 9 of crystla reports
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.


Author Comment

ID: 9820539
hi thanks for the response

I call the report using asp

frodoman, I was also trying that by storing the image in the database, but it is not the solution we want. we dont want to store images in the database. thanks for the suggestion anyway.


I am not using VB, can it be done in crystal report 9 alone. can i generate a report using the method you suggested.
how do i modify the instance of the ole object and you are mentioning of a sample, i dont see any. where can i find the sample.

Expert Comment

ID: 9820618
if you are using ASP you can set this at runtime.  here is an article demonstrating

you will need  to do a select from your datasource as well and before doing this, youll need an identifier to find the proper image.  perhaps a select box prior to claling the report to identify the proper value.  form ore specific help post some sample code.

LVL 13

Accepted Solution

EwaldL earned 20 total points
ID: 9820709
sorry, i had forgotten to post the link ;-)

the article you refer to can't be used in asp as asp can't use section events.

so if you are determined that the images are not to be saved in the database, you could only fill a recordset in asp that contains the images and pass this to the report. try the genric example from

Expert Comment

ID: 9820799

why cant he use section events?
LVL 13

Expert Comment

ID: 9821163
asp simply doesnt have the capability. if you found a way to get the rdc's section events to work in asp then i would love to know how ;-)

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question