Print Page | Close Window

dynamically display of imageson crystal report

Printed From: Crystal Reports Book
Category: Crystal Reports .NET 2003
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=317
Printed Date: 04 May 2024 at 12:15am


Topic: dynamically display of imageson crystal report
Posted By: fozia_izhar
Subject: dynamically display of imageson crystal report
Date Posted: 13 Mar 2007 at 10:30pm

Hi to all,

I hav a crystal report on which i want to generate identity card of all candidates.I hav a picture control on my report.now i want to dynamically assign path to that picture control .So that a full fledged card can be generated.How can i do that plz tell me if anyone can



-------------
This is not so easy so we are here...



Replies:
Posted By: BrianBischof
Date Posted: 14 Mar 2007 at 12:52am
Unfortunately, to do this in .NET 2003 is a bit complex. I have the complete code in my book and its much too complex to explain here. You have to create a DataSet class and add field to it of the binary type. Then load all the images into the DataSet. Then link that DataSet to the report.

If you get CR XI, they added support for dynamic images so that all you have to do is pass it the filepath of the image. Much easier! But with VS 2003 it is not that simple.


-------------
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>


Posted By: fozia_izhar
Date Posted: 14 Mar 2007 at 2:45am
Hi Brian
Thanks for reply
can i fetch the path from DB and store it in dataset and then dynamically assign path to the picture box.
i hav fetched the path but i dont get any way to assign dat path to picture box dynamically.Is der any property of picture box of crystal report for this task.


-------------
This is not so easy so we are here...


Posted By: BrianBischof
Date Posted: 14 Mar 2007 at 9:07am
No, you can't do this. The only option is to do the steps I listed in my post. Crystal doesn't have this feature unless you upgrade to CR XI.

-------------
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>


Posted By: fozia_izhar
Date Posted: 14 Mar 2007 at 10:12pm
ok thanks Brain Smile
I'll try to implement ur first solution.


-------------
This is not so easy so we are here...



Print Page | Close Window