Adding a referernce to a report

2 posts, 0 answers
  1. Philip
    Philip avatar
    69 posts
    Member since:
    Mar 2016

    Posted 07 Mar Link to this post

    I am creating a report within a dll but when I come to consume my application within the website I am faced with a error of object, I have the reported stored in a class type project and rerfernce it in the application. Also how do i add the filters which I have defined in the designer on the report viewer so the user can select two dates start date and end date in filters?
  2. Katia
    Admin
    Katia avatar
    308 posts

    Posted 09 Mar Link to this post

    Hi Philip,

    Check if you set the ReportSource correctly - How to: Set ReportSource for Report Viewers. Also, make sure Telerik.Reporting.dll and Telerik.ReportViewer.WebForms.dll assemblies physically exist in the bin folder of your application - Deploying Web Site.
    Note that WebSite projects have to be configured manually due to their specific handling of references. In a web application, dragging the viewer on the design surface will work as expected.

    Regarding you last question, in VS Designer, you can set the parameters from Edit Parameters dialog when you specify the ReportSource for the viewer. Another option is to set parameters programmatically - please see an example in How to: Set ReportSource for Report Viewers/Set the Report Source programmatically help article.

    Please note, that ASP.NET Web Forms Report Viewer is a legacy report viewer and for new projects our recommendation is to use the latest web forms report viewer - HTML5 Web Forms Report Viewer.

    In case, this information does not help please open a support ticket and attach the problematic project so we can test it locally.

    Regards,
    Katia
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
Back to Top