Using a Report in Wpf?

4 posts, 0 answers
  1. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 20 Dec 2012 Link to this post

    Hi,

    is it possbile to view a Report (Example the Dashboard.trdx) in a wpf Application?

    Thanks
    Best Regards
    Rene
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 20 Dec 2012 Link to this post

    Hi Rene,

    Yes it is possible, you can deserialize an xml report and end up with a CLR object. You can use InstanceReportSource to assign this report to the WPF report viewer.
    Another approach is to directly use the xml report without deserializing, this is possible by using XmlReportSource or UriReportSource.

    Regards,
    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!

  3. UI for WPF is Visual Studio 2017 Ready
  4. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 12 Jan 2013 Link to this post

    Hi,

    thanks so far. I'm looking for a working example of binding a Sqlite Database to a Telerik Report in a wpf-project.
    I have to create the report on the fly and i have to update the report by chaning some values on the fly....

    Is there any smaple-project somewhere to find?

    thanks
    best Regards
    Rene
  5. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 16 Jan 2013 Link to this post

    Hello Rene,

    The database is irrelevant as long as it is supported. Sqlite is a supported database, so any of our Visual Studio examples that utilize the SqlDataSource component is a valid example for you to review.

    About the programmatic creation of the reports, you can use the Programmatic Control of Reports help article as a starting point. Whenever you're not sure how to accomplish something, use the Integrated Visual Studio Report Designer to create the desired items/layout and then inspect the InitializeComponent method to see what code it has generated.

    Greetings,
    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!

Back to Top