Dim jp As New JobPlan
Dim ds As Data.DataTable = jp.JobPlansByUser(User_GUID)
With radgrid_JobPlans
.DataSource = ds
.DataBind()
End With
How do I do this with a report, and where would I put the code, in the report itself or the aspx display page.
I understand I wont get the design time benifits of having a sample of the data to design the reports.
Andy
Hi,
I am using Telerik Reporting that is working in Development environment (VS 2008). When I deploy my application in IIS7.0 + windows server 2008 it stopped working and I
am getting the following error
The http handler needed by the Report Viewer has not been registered in the application's web.config file. Add <add verb="*"path="Telerik.ReportViewer.axd" type ="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=2.9.9.202, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" /> to the system.web/httpHandlerssection of the configuration file.
Please guide me to resolve this.
Hi,
I have created a UserControl (ascx) with the Report Viewer. I am creating instances of my report classes dynamically. My Report viewer code looks like this:
| if (!Page.IsPostBack) |
| { |
| if (!string.IsNullOrEmpty(_reportName)) |
| { |
| PageManagementDataContext db = new PageManagementDataContext(); |
| var rec = db.ReportGetByReportIDAndLCID(Convert.ToInt32(_reportName), "is-IS").FirstOrDefault(); |
| if (rec != null) |
| { |
| Object obj = Activator.CreateInstance(Type.GetType("Orbit.Benjamin.Reports." + rec.systemname)); |
| Telerik.Reporting.Report rpt = (Telerik.Reporting.Report)obj; |
| ReportViewer1.Report = rpt; |
| ReportViewer1.ZoomMode = Telerik.ReportViewer.WebForms.ZoomMode.Percent; |
| ReportViewer1.ZoomPercent = 100; |
| ReportViewer1.Style["height"] = "30cm"; |
| } |
| } |
| } |
| } |
| protected object GetNewType(string classname) |
| { |
| Type type = Type.GetType(classname, true); |
| object newInstance = Activator.CreateInstance(type); |
| return newInstance; |
| } |
| var enterpr = db.EnterprisesAndDivisionsGetAll().Where(d => d.partyroleid != 4); |
| var parameter = this.ReportParameters["Company"]; |
| parameter.UI.AvailableValues.DataSource = enterpr.Select(o => o.partyname); |
| parameter.Value = enterpr.Select(o => o.id); |