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??
column names as headertext??
Hi
The error occurred because you assigned string type to StiText class.
Please see PrintTable sample application from standard installation.
Thank you.
The error occurred because you assigned string type to StiText class.
Please see PrintTable sample application from standard installation.
Thank you.