automatic change width column

Stimulsoft Reports.NET discussion
Post Reply
s_mokhtari
Posts: 13
Joined: Fri Nov 27, 2009 6:32 am
Location: iran

automatic change width column

Post by s_mokhtari »

hi
i want change width column this my code but width no change

Code: Select all

  StiText txtaddress = stiReport1.GetComponents()["Text9"] as StiText;
txtaddress .width=300;

i want column grow with text those
however i small width col but when show text the colum is small or large
i want change width col automatic
thanks :pffft:
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

automatic change width column

Post by Alex K. »

Hello,

Please try use the following code

Code: Select all

StiReport stiReport = new StiReport();
stiReport.Load();
StiText stiText = stiReport.GetComponents()["Text1"] as StiText;
stiText.Width = 300;
This code work correctly.

Thank you.
Post Reply