This is a migrated thread and some comments may be shown as answers.

Adding a referernce to a report

1 Answer 39 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Philip
Top achievements
Rank 1
Philip asked on 07 Mar 2016, 11:05 AM
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?

1 Answer, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 09 Mar 2016, 04:36 PM
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  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
Tags
General Discussions
Asked by
Philip
Top achievements
Rank 1
Answers by
Katia
Telerik team
Share this question
or