Page 1 of 1

column names as headertext??

Posted: Wed Jan 27, 2010 5:38 am
by SK06
Hello,

I want to design a report in runtime. I created a DataTable from data base sql query. So, every run of my program can give another DataTable. To create headertexts I tried:

foreach (DataColumn column in dt.Columns)
{
StiText headertext = new StiText(new RectangleD(x, y, w, h));
headertext = column.ColumnName;
headerband.Components.Add(headertext);
}

I get the error (I translatet it from german): An implicite converting of typ "string" in "Stimulsoft.Report.Components.StiText" is not possible.

What can I do?

column names as headertext??

Posted: Wed Jan 27, 2010 6:38 am
by Edward
Hi

The error occurred because you assigned string type to StiText class.

Please see PrintTable sample application from standard installation.

Thank you.