将SQL Server ssrs报告嵌入到asp.net页面

时间:2016-02-29 11:06:53

标签: c# asp.net sql-server sql-server-2012 reportviewer

我在asp.net页面中嵌入了SQL Server报告。但是我对我的代码感到困惑:

reportViewerSam.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
reportViewerSam.ServerReport.ReportServerUrl = new Uri("http://DontKnowWhatToAddHere/ReportServer");//http://+:80/ReportServer
reportViewerSam.ServerReport.ReportPath = @"D:\TP\TestProject\Movies";
reportViewerSam.ServerReport.Refresh();

我不确定要向reportServerUrl提供什么。当我打开rsreportserver.config文件时,我有以下网址:

<Application>
    <Name>ReportManager</Name>
    <VirtualDirectory>Reports_FA</VirtualDirectory>
    <URLs>
        <URL>
            <UrlString>http://+:80</UrlString>
            <AccountSid>S-1-5-80-1142752433-3704371676-891461080-4200684315-3208225222</AccountSid>
            <AccountName>NT Service\ReportServer$FA</AccountName>
        </URL>
    </URLs>
</Application>

我需要知道我应该向reportserverurl

提供什么路径

0 个答案:

没有答案