System.Data.DataTable dt = new MyDataClass.GetReport();ReportClassLibrary.Report1 r1 = new ReportClassLibrary.Report1();r1.DataSource = dt;ReportViewer1.Report = r1;Hi,
I had previously installed a trial version of the reporting module. I purchased, downloaded and installed the package. I moved the new dll's over to my bin directory and modified the web.config httphandlers with the new dll's version which is 5.3.12.131. When I try to open the reports through the web app, I get the following error:
Could not load file or assembly 'Telerik.ReportViewer.WebForms, Version=5.3.11.1116, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
For some reason is looking for version Version=5.3.11.1116 instead of 5.3.12.131. Just in case for some odd reason the dll was being loaded from the GAC I double check windows assemblies and the new telerik dll's with version 5.3.12.131 are registered there too.
Here is what I have in my web.config to define the httphandlers:
<handlers>
<add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
<add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=5.3.12.131, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode" />
</handlers>
- and -
<httpHandlers>
<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
<add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler,Telerik.Web.UI"/>
<add verb="*" path="Telerik.ReportViewer.axd" type = "Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=5.3.12.131, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" />
</httpHandlers>
Can anyone point me to anything else I should check?
Thanks!
ReportBook reportBook = new ReportBook();
reportBook.Reports.Add(new MyReportLib.Report7());
reportBook.Reports.Add(new MyReportLib.Report8());
ReportBookControl1.Reports.Add(new MyReportLib.Report7());
ReportBookControl1.Reports.Add(new MyReportLib.Report8());
ReportViewer1.Report = ReportBookControl1;
Hi,
I'm trying to render a chart inside the Telerik report. I'm also rendering the same chart in my MVC web application using Telerik Extensions for ASP.NET MVC chart control. But both are giving different charts.
Here is the code:
Telerik.Reporting.Processing.Chart procChart = (Telerik.Reporting.Processing.Chart)sender; Telerik.Reporting.Chart defChart = (Telerik.Reporting.Chart)procChart.ItemDefinition; defChart.Series.Clear(); int xAxisIndicesCount = (from cdsl in chartDataSourceList select cdsl.XAxisValue).Distinct().Count(); defChart.PlotArea.XAxis.Items.Clear(); defChart.PlotArea.XAxis.AutoShrink = false; defChart.PlotArea.XAxis.AutoScale = false; defChart.PlotArea.XAxis.AddRange(0, (xAxisIndicesCount > 0) ? xAxisIndicesCount - 1 : 0, 1); defChart.SeriesOrientation = seriesOrientation; defChart.DataGroupColumn = "GroupingValue"; defChart.PlotArea.XAxis.DataLabelsColumn = "XAxisValue"; defChart.Legend.Appearance.GroupNameFormat = "#VALUE"; defChart.IntelligentLabelsEnabled = true; procChart.DataSource = chartDataSourceList;
Essentially if you can compare the charts I have attached, in the PDF chart, the series columns are misplaced. Please check and revert if you need further clarifications. I hope you will better be able to figure the issue by comparing the charts, than explaining it here. Please revert asap.
Thanks