Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Add images to report control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Add images to report control

 Post Reply Post Reply
Author
Message
goedkoper50 View Drop Down
Newbie
Newbie


Joined: 23 February 2008
Location: France
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote goedkoper50 Quote  Post ReplyReply Direct Link To This Post Topic: Add images to report control
    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!!
 
 
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.