Page 1 of 1

automatic change width column

Posted: Fri Oct 08, 2010 3:18 am
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:

automatic change width column

Posted: Fri Oct 08, 2010 5:03 am
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.