dynamic images in crystal reports 9

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.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

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.
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
OWASP: Forgery and Phishing

Learn the techniques to avoid forgery and phishing attacks and the types of attacks an application or network may face.

anilkumar7Author Commented:
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.
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.

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 ADORecortsetExample.zip from http://support.crystaldecisions.com/communityCS/FilesAndUpdates/aspxmps9.exe.asp

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial

why cant he use section events?
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 ;-)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.