Page 1 of 1

How to set image control width and height dynamically in stimulsoft

Posted: Wed Jun 13, 2012 8:03 am
by rahul
May any one please tell me that how one can dynamically change image control dimension(width and height) in stimulsoft.
I have 2 url of one project,but they both belong to different companies.User interface is same for both,but they both have different logo with different dimensions,i cannot do coding for 2 diiferent projects so i want to set logo width and height dynamically..
please suggest me
Thanks in advance

Thanks

How to set image control width and height dynamically in stimulsoft

Posted: Thu Jun 14, 2012 2:25 am
by Vladimir
Hello,

You can use the following code for this:

Code: Select all

StiImage image = report.GetComponentByName("Image1") as StiImage;
image.Width = 100;
image.Height = 80;
Thank you.