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

Load a Report from .tdrx on Report Viewer in WPF Application

2 Answers 127 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Filander
Top achievements
Rank 1
Filander asked on 11 Feb 2013, 08:45 PM
Hello, I want to know how to use a report I did in Telerik Report Designer, the report has a SqlDataSource that calls a stored procedure which fills the report with data that I want.

I have an application in WPF which has a ReportViewer and I do the following:

Telerik.Reporting.UriReportSource uriReportSource = new Telerik.Reporting.UriReportSource();

uriReportSource.Uri = @"C:\Users\educles\Documents\Report1.trdx";

this.reportViewer.ReportSource = uriReportSource;



but when I run the application I get the error specified in the file uploaded "toma2.png"

The error says that the problem is about a ConnectionString but I not repair it, if I could solve this problem once can see the report as I do in order to manipulate the SqlDataSource that has the report and to send parameters to show me different data.

I would be very grateful because I have hours and hours and not fart repair.

Greetings!

2 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 12 Feb 2013, 02:00 PM
Hi Filander,

You should add a connection string with the same name you have specified when creating the SqlDataSource component in the designer to the configuration file (App.config) of the WPF application. By default there is no App.config so you can create a new one from Add -> New Item.

All the best,
Steve
the Telerik team

HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

0
Filander
Top achievements
Rank 1
answered on 12 Feb 2013, 05:31 PM
thank you very much!

Tags
General Discussions
Asked by
Filander
Top achievements
Rank 1
Answers by
Steve
Telerik team
Filander
Top achievements
Rank 1
Share this question
or