1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Sitefinity and Telerik Reporting

Sitefinity and Telerik Reporting

3 posts, 0 answered
  1. David Whritenour
    David Whritenour avatar
    22 posts
    Registered:
    30 Nov 2009
    02 Jun 2011
    Link to this post
    Hello,

    I am running Sitefinity 4.1.
    I would like to add a Telerik Report into a Widget (User Control).
    Is this possible?
    I cannot find any documentation regarding the best approach to embedding a Telerik Report into Sitefinity.

    Regards,
    David Whritenour
  2. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    03 Jun 2011
    Link to this post
    It's just plain asp.net :)

    Just make a ascx usercontrol, plop the Telerik Reporting Viewer into it, then expose some public properties to set the report, Parameters, or whatever!

    Should be cake...

    ** EDIT: and register the control in the Settings Toolbox **
  3. David Whritenour
    David Whritenour avatar
    22 posts
    Registered:
    30 Nov 2009
    03 Jun 2011
    Link to this post

    Here are the steps I followed.  I wanted to post this because step six tripped me up for a while. 
    Hope this saves someone else some development time.
    Regard,
    David

    Steps to add Telerik Report to Sitefinity 4.1

    1. Created a Widget (User Control) and registered it with Sitefinity.  This process is described here:
    http://www.sitefinity.com/40/help/developers-guide/how-to-how-to-create-a-control-creating-a-user-control.html
    2. Added a new Class Library Project (called MyReports) to the Sitefinity 4.1 Project.  Deleted the Class Library and created a new Telerik Report.  The process is outlined here:
    http://www.telerik.com/help/reporting/quick-start-create-simple-report.html
    3. Dragged a Telerik ReportViewer Control into the Widget created in step one.
    4. In the Sitefinity Project, added a reference to the MyReports project.
    5. Set the Report Property of the Telerik ReportViewer Control to the report created in step two.
    6. Added the connection string from the app.config file of the MyReports Project to the web.config file of the Sitefinity Project.  This explained in the following forum post:
    http://www.telerik.com/community/forums/reporting/telerik-reporting/unable-to-establish-a-connection-to-the-database.aspx
    7. Built Project and tested - seems to work okay.

3 posts, 0 answered