Sitefinity and Telerik Reporting

Posted by Community Admin on 04-Aug-2018 19:09

Sitefinity and Telerik Reporting

All Replies

Posted by Community Admin on 02-Jun-2011 00:00

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

Posted by Community Admin on 03-Jun-2011 00:00

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 **

Posted by Community Admin on 03-Jun-2011 00:00

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.

This thread is closed