Hi hi hi ,
How is add image from image List in Runtime?
Regards,
KMarimuthu.
How is rendering add Image in runtime
-
- Posts: 101
- Joined: Wed Jul 26, 2006 8:03 am
- Location: CHENNAI-TN, INDIA
How is rendering add Image in runtime
Marimuthu K
How is rendering add Image in runtime
If you need provide imagelist to report you need do following steps:
1.Create static property in your application:
2.Add reference to your application dll in Report.ReferencedAssemblies.
3.Add using to report code:
using MyAssembly.MyNamespace;
After then you can use following code:
Image1.Image = Data.ImageList.Images[0];
Thanks.
1.Create static property in your application:
Code: Select all
public class Data
{
public static ImageList ImageList
{
get
{
return imageList;
}
}
}
3.Add using to report code:
using MyAssembly.MyNamespace;
After then you can use following code:
Image1.Image = Data.ImageList.Images[0];
Thanks.