This is a migrated thread and some comments may be shown as answers.

Hello

1 Answer 83 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nada
Top achievements
Rank 1
Nada asked on 24 Mar 2009, 08:38 AM
hello ,
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


1 Answer, 1 is accepted

Sort by
0
Chavdar
Telerik team
answered on 24 Mar 2009, 09:46 AM
Hi Nada,

It seems that the data which you provide for the chart is somehow not valid for the specific chart setup. Could you please open a support ticket and send us the report definition and if possible some data to test with?

Thank you in advance.

Greetings,
Chavdar
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Nada
Top achievements
Rank 1
Answers by
Chavdar
Telerik team
Share this question
or