column names as headertext??
Posted: Wed Jan 27, 2010 5:38 am
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?
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?