Please any one can help me , I get this error
An error has occured while processing Chart 'chart1':
An Unexpected error has occurred. Please review the InnerException for more information how to resolve the problem. |
|
(happened when item doesn't have value then other choose another item get this ) this is my code
private void chart1_NeedDataSource(object sender, EventArgs e)
{ Telerik.Reporting.Processing. Chart medicationChart = sender as Telerik.Reporting.Processing.Chart;
DateTime fromDate = Convert.ToDateTime(this.ReportParameters["StartDate"].Value);
DateTime todate = Convert.ToDateTime(this.ReportParameters["EndDate"].Value);
string country = this.ReportParameters["CountryId"].Value.ToString();
int recordCount = Convert.ToInt32(this.ReportParameters["RecordCount"].Value);
GetMedicationReportTableAdapter adapter = new GetMedicationReportTableAdapter();
dsMedication.GetMedicationReportDataTable data = adapter.GetMedicationData(fromDate, todate, country, recordCount);
medicationChart.DataSource = data.DefaultView; }
thanks in advance |