column names as headertext??

Stimulsoft Reports.NET discussion
Post Reply
SK06
Posts: 4
Joined: Wed Jan 27, 2010 5:28 am

column names as headertext??

Post 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?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

column names as headertext??

Post by Edward »

Hi

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

Please see PrintTable sample application from standard installation.

Thank you.
Post Reply