To integrate SSRS reports into an ASP.NET application, follow these steps:
First, run the IReportServerConnection2 interface. I did something like this:
public sealed class CustomReportServerConnection : IReportServerConnection2 { public WindowsIdentity ImpersonationUser { get {
Now in the AppSettings settings specify the following keys (or specify these values ββanywhere):
<add key="ReportServerUrl" value="http://sqlServerURL/ReportServer_SQL2008R2"/> <add key="TargetReportFolder" value="/AppReporting/"/> <add key="ReportServerTimeOut" value="600000"/> <add key="ReportViewerServerConnection" value="FullyQualified Name of ur CustomReportServerConnection,ProjectName"/> <add key="ReportsUser" value="ReportUser"/> <add key="ReportsPassword" value="reportPassword"/> <add key="ReportsDomain" value="myDomain"/>
Now, on the .aspx page, drag reportViewer something like this:
<rsweb:ReportViewer ID="RptViewer" runat="server" AsyncRendering="False" SizeToReportContent="true" ProcessingMode="Remote" Width="100%" BackColor="#F7F8F9" OnReportError="RptViewer_ReportError" OnReportRefresh="RptViewer_ReportRefresh1" Height=""> </rsweb:ReportViewer>
and customize your ReportViewer in code. place ReportParameter correctly.
it crushes you an idea ...
indicates that you need to authenticate properly, therefore, by creating your own custom ReportServerConnection
Manish mishra
source share