Page 1 of 1

How is rendering add Image in runtime

Posted: Tue Aug 01, 2006 12:36 am
by MARIMUTHU K
Hi hi hi ,

How is add image from image List in Runtime?


Regards,
KMarimuthu.

How is rendering add Image in runtime

Posted: Tue Aug 01, 2006 6:13 am
by Vital
If you need provide imagelist to report you need do following steps:

1.Create static property in your application:

Code: Select all

public class Data
{
	public static ImageList ImageList
	{
		get
		{
			return imageList;
		}
	}
}
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.