Print Page | Close Window

Add images to report control

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=9675
Printed Date: 18 September 2024 at 10:34pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Add images to report control
Posted By: goedkoper50
Subject: Add images to report control
Date Posted: 23 February 2008 at 11:22am
I am new to C# and need help with something very simple.
 
I need to add images to my report control records (each record has a different image).
 
I managed to load all my images into an ImageList, but when I try to assign the ImageList to the ReportControl I get a "Invalid Cast Exception".
 
 
My code looks like this :
 
 ImageList iList = new ImageList();
 
 //Some code to add images to the iList
 ...
 
 
//Finally I need to assigne iList to my Report Control
 
 wndReportControl.SetImageList(iList);
 
 
What am I doing wrong? Please HELP!!
 
 



Replies:
Posted By: Aaron
Date Posted: 21 April 2008 at 7:35am
Hi,
 
The images in the imagelist will be added to the ReportControl icons,  beginning with index 0. Does your icon ID match the index?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net