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 |
Hello ,
Please any one can help me , I made Report in telerik reporting with 4 report parameters 2 datetime , 1 integer , 1 string , inside this report I put subreport with same parameter because main report for chart and subreport for display date , first
NeedDataSource fired true but second NeedDataSource have error Error converting data type nvarchar to datetime sql exception was unhandled by user code
thanks in advace
Hello,
I have a create a report in which there will be dynamic number of columns. How can I add dynamic columns in a report and if the report size gets wider than the page size then the first two columns should repeat on the next page and the dynamic columns should start from the next after what is displayed on the first page.
What makes this report tricky is that is has to page not only on rows but on columns. For example the dynamic columns of type is "Room Type" with columns "K-1A" through "DD-1B" on one page. And If there are more room types, I need to create a second page with the same rows but with the additional room types. The header of Room Type(The dynamic column should be dynamic also)
For the deatiled view of report please see the following link:
http://picasaweb.google.com/lh/photo/lVd31YDancIyTPORZrwPaQ?feat=directlink
Hope my problem is clear in these words.
Please reply as I have to deliver my report as early as possible.
Thanks
Yuvika
Hi
I just copy the code from another thread and convert it to vb.net. I want to get the "cateID" data in ItemDataBound event, however, it (sCurrentID) always receive null. Are there any mistake in my code
Private Sub detail_ItemDataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles detail.ItemDataBound
Dim procDetail As Telerik.Reporting.Processing.DetailSection = CType(sender, Telerik.Reporting.Processing.DetailSection)
Dim oRow As DataRowView = TryCast(procDetail.DataItem, DataRowView)
Dim sCurrentID As String = TryCast(oRow("CateID"), String)
End Sub
Please help me, thx a lot.
Alexis