Add images to report control |
Post Reply |
Author | |
goedkoper50
Newbie Joined: 23 February 2008 Location: France Status: Offline Points: 2 |
Post Options
Thanks(0)
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!!
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
The images in the imagelist will be added to the ReportControl icons, beginning with index 0. Does your icon ID match the index?
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |