Hello:
I'm new using Telerik controls, I find it very useful these controls, in addition to be easy to implement.
I had no problems with the RAD Controls, but when I try the reporting everything worked well:
making the report( I see both Preview and HTML Preview), connect to the database, creating the reportviewer in the aspx page.
But when I try to run the web site, all other pages worked fine, but the report does not work, I get the following message:
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=1.5.0.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" /> to the system.web/httpHandlers section of the configuration file.
But Im ussing Netframework 2.0 for the application, so I put the handler in Handler Mapping In the application's config file, but nothing happened.
<system.webServer>
<handlers>
<add name="TelerikReport" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler" resourceType="Unspecified" />
</handlers>
</system.webServer>
I search the entire Reporting Forum, with no luck. I put The dll files in the bin directory. Any advice? I may be missing something?
Thanx for your time.
P.D.
Im Using VS2005 in Vista Utimate.
Hi, It is kind of hard to post all my actual codes here because I am working from rather complicated business objects. Here is a simplified model.
public partial class ReportViewer : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
IList<Order> myOrderList = GetFromBO.GetOrders();
Report myReport = new ReportLibrary.MyOrderReport;
myReport.DateSource = myOrderList;
this.ReportViewer1.Report = myReport;
}
}
class GetFromBO {
public IList<Order> GetOrders() {
ILIst<Order> orderList = new List<Order>;
Order order;
//fill the IList<Order> with orders
//...
orderList.Add(order)
//...
orderList.Add(order)
//...
return orderList;
}
}
class Order {
public int OrderID;
public datetime OrderShipDate;
public IList<OrderDetail> OrderDetails;
....
}
}
class OrderDetail {
public int OrderDetailID;
Public Item item;
public int Quantity;
....
}
class Item {
public int ItemID ;
public string ItemName ;
public datetime AvailableDate ;
....
}
The myReport will display List<Order>.OrderShipDate, as well as List<Order>.OrderDetails.Item.AvailableDate.
Here is the error message "Cannot set Column 'OrderShipDate' to be null.Please use DBNull instead". I believed it was caused by Nullable database field of [Order.OrderShipDate] or [Item.AvailableDate].
Please help if there is a way to get around this. Thanks.