Wednesday, May 2, 2012

draw SSRS into web forms

So far I have only encountered web forms implementations of SRSS incorporations in apps. A web form will sort of make an iframe out to SSRS content with a ReportViewer control like so:

<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana"
   Font-Size="8pt" InteractiveDeviceInfos="(Collection)" ProcessingMode="Remote"
   WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Width="920px"
   Height="500px">
</rsweb:ReportViewer>

 
 

You will need to have references to Microsoft.ReportViewer.Common and Microsoft.ReportViewer.WebForms and you will need a ScriptManager in the same web form as the ReportViewer control. Also, you may only have one ReportViewer on a web form at a time.

<asp:ScriptManager runat="server"></asp:ScriptManager>

No comments:

Post a Comment