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

Problem Selected Report For Report Viewer

3 Answers 78 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ajpetersen
Top achievements
Rank 1
ajpetersen asked on 24 Sep 2011, 07:43 PM
Hi,

I have been having a problem displaying a simple report in a winforms app with the report viewer. I followed the tutorial videos, but do not know what is going wrong.

Below is what I get when I select the Report Property of the Report Viewer. In the video, the reports would show up in this list. The name of the report I want to appear in this list is TestReport.cs





Below is how my solution is setup:



And since I could not select my report via the property menu, I tried to do it in code like this, which also failed:



And finally, here is the error I am getting when running the app and click refresh.




My main question is, how do I set the report via the report property of the report viewer?

My second question is, how do I set which report to show via code?

Thanks in advance

3 Answers, 1 is accepted

Sort by
0
ajpetersen
Top achievements
Rank 1
answered on 27 Sep 2011, 02:32 PM
Anyone have any suggestions?
0
Accepted
Peter
Telerik team
answered on 27 Sep 2011, 05:21 PM
Hello Claude,

Our suggestion is to make sure that the reports class library references the same version of the Telerik Reporting assemblies as the assemblies referenced in the Windows Forms project and rebuild the whole solution.

Let us know how it goes and if you experience any further difficulties we will appreciate if you send us the problematic Visual Studio solution and any errors you get from the Visual Studio Output window.

Regards,
Peter
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
ajpetersen
Top achievements
Rank 1
answered on 27 Sep 2011, 05:59 PM
Great! Thanks, the Telerik.Report.dll was a newer version than the Telerik.ReportViewer.Winforms.dll
Tags
General Discussions
Asked by
ajpetersen
Top achievements
Rank 1
Answers by
ajpetersen
Top achievements
Rank 1
Peter
Telerik team
Share this question
or