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

Where can I find sample code

3 Answers 161 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 10 Sep 2018, 01:17 PM
Where can I find a sample project that uses data bound standalone reports in a web or wpf application? I see all kinds of code snipets, but I can't find a simple example that works end to end.

3 Answers, 1 is accepted

Sort by
0
Silviya
Telerik team
answered on 11 Sep 2018, 06:33 AM
Hello Richard,

Details on how to add HTML5 Viewer to the project and display report created with the Standalone designer are available in How To: Use HTML5 Report Viewer in an application. Telerik Reporting HTML5 Report Viewer template could be added through Visual Studio Project -> Add New Item -> Web -> Telerik HTML5 Report Viewer Page <VERSION>. 
The VS item template will setup your project to enable the Telerik Reporting REST WebAPI Service and allows you to choose the type of the report source - in this case a path to a TRDP or TRDX file (check step 3).The VS item template will add the report definition to the Reports directory in your application.
This report source string value will be sent to the Telerik Reporting REST service which internally resolves it to
 a UriReportSource on the machine where the service and Telerik Reporting Engine are running.

In your case the reportSource would look like:
reportSource: {
    report: "SampleReport.trdp",
    parameters: { }
}
 

As for WPF applications, you can follow the corresponding steps from the Telerik Report Viewer Window Item Template wizard - How to: Add report viewer to a WPF application.

Regards,
Silviya
Progress 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
0
Richard
Top achievements
Rank 1
answered on 11 Sep 2018, 02:48 PM

Thanks, but that does not really address the issue.

I have gone through tons of sample snippets, but I was hoping that someone has created a simple project that shows everything from end to end.

0
Silviya
Telerik team
answered on 14 Sep 2018, 01:09 PM
Hi Richard,

I'm attaching a sample web application containing Html5 Report Viewer to for displaying the sample Dashboard.trdp report definition that is bound to data from AdventureWorks sample database.
Also, I captured a video, as step-by-step tutorial on how need to be done - https://www.screencast.com/t/pkgfkrAaiqRj. The video is silent and can be opened in browser with installed Flash plugin.
Please note that it is required to add connection string to the web.config file so, the client application can establish successful connection to the database. 

Regards,
Silviya
Progress 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
Report Designer (standalone)
Asked by
Richard
Top achievements
Rank 1
Answers by
Silviya
Telerik team
Richard
Top achievements
Rank 1
Share this question
or