Where can I find sample code

4 posts, 0 answers
  1. Richard
    Richard avatar
    35 posts
    Member since:
    Jun 2009

    Posted 10 Sep 2018 Link to this post

    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.
  2. Silviya
    Admin
    Silviya avatar
    354 posts

    Posted 11 Sep 2018 Link to this post

    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
  3. Richard
    Richard avatar
    35 posts
    Member since:
    Jun 2009

    Posted 11 Sep 2018 in reply to Silviya Link to this post

    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.

  4. Silviya
    Admin
    Silviya avatar
    354 posts

    Posted 14 Sep 2018 Link to this post

    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
Back to Top