Hello
This is my code to input data into a table on the report.
The table is linked to a objectdatasource with the same columns
When i bind to the report none of my data comes through
This is my code to input data into a table on the report.
The table is linked to a objectdatasource with the same columns
When i bind to the report none of my data comes through
private void monthlyservicesales_NeedDataSource(object sender, EventArgs e) { var report = (Telerik.Reporting.Processing.Report)sender; using (var mySql = new MySQL(App.ConnString)) { var data = mySql.QueryDataset( @"SELECT servicetable.Name,count(*) as Total,0 as BWTotal FROM axxess.axstable axstable JOIN axxess.servicetypetable servicetypetable ON (axstable.ServiceTypeId = servicetypetable.ServiceTypeId) join axxess.servicetable ON servicetypetable.ServiceId = axxess.servicetable.ServiceId WHERE (date_format(axstable.DateCreated,'%Y%M') = date_format(?0,'%Y%M')) and axxess.servicetable.Name not like '%*%' Group by servicetypetable.ServiceId order by count(*) desc", report.Parameters["datetime"].Value); var objectDataSource = new Telerik.Reporting.ObjectDataSource(); objectDataSource.DataSource = data.Tables[0]; // GetData returns a DataSet with three tables report.DataSource = objectDataSource; } }