How is rendering add Image in runtime

Stimulsoft Reports.NET discussion
Post Reply
MARIMUTHU K
Posts: 101
Joined: Wed Jul 26, 2006 8:03 am
Location: CHENNAI-TN, INDIA

How is rendering add Image in runtime

Post by MARIMUTHU K »

Hi hi hi ,

How is add image from image List in Runtime?


Regards,
KMarimuthu.
Marimuthu K
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

How is rendering add Image in runtime

Post 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.
Post Reply