How to display a Microsoft SQL Server Reporting Services (SSRS) report in Kentico
This article provides an example of displaying SSRS report in Kentico.
If you are trying to set a ReportViewer in combination with CMSPortalManager to display a Microsoft SQL Server Reporting Services, it could throw the exception:
Internal Error: ClientID referenced before OnInit
You should add the RepeaterViewer not as an control (ascx), but in the On_load event of the WebPart by adding the following: Controls.Add(ReportViewer).
Example:
ReportViewer rv = new ReportViewer();
Controls.Add(rv);
And now… it should work like a charm.
See also: ReportViewer Controls
Applies to: Kentico CMS versions 5.5 through version 7.0