I am trying to create reports programmatically and when I copied the code from the links there are errors. I am getting the following errors:
'Report' does not contain a constructor that takes 0 arguments
'DetailSection' does not contain a constructor that takes 0 arguments
How can the examples be updated?
Report report = new Report();
string selectCommand = @"SELECT * FROM Sales.Store";
string connectionString = "Data Source=(local)\\SQLEXPRESS;Initial Catalog=AdventureWorks;Integrated Security=True";
Telerik.Reporting.SqlDataSource sqlDataSource = new Telerik.Reporting.SqlDataSource(connectionString, selectCommand);
report.DataSource = sqlDataSource;
DetailSection detail = new DetailSection();
this.detail.Height = new Telerik.Reporting.Drawing.Unit(3.0, Telerik.Reporting.Drawing.UnitType.Inch);
this.detail.Name = "detail";
report.Items.Add((ReportItemBase)detail);
Thank you.