How to set image control width and height dynamically in stimulsoft

Stimulsoft Reports.WEB discussion
Post Reply
rahul
Posts: 2
Joined: Wed Jun 13, 2012 7:56 am
Location: chandigarh

How to set image control width and height dynamically in stimulsoft

Post 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
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

How to set image control width and height dynamically in stimulsoft

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