2011-12-01 48 views
0

爲了在我的MVC應用程序中呈現報告,我必須使用網頁和ReportViewer控件連接到報告。 其中我對這兩個都是新手。 我有一份報告,我可以在預計運行的BIDS中運行。 我使用該向導在我的網頁上設置了ReportViewer,如下所示;無法讓我的ReportViewer顯示我的SRSS報告

<rsweb:ReportViewer ID="ReportViewer1" runat="server" ProcessingMode="Remote" 
    Font-Names="Verdana" Font-Size="8pt" InteractiveDeviceInfos="(Collection)" 
    WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt"> 
    <ServerReport ReportPath="/Report_SHP_EmployeeHistory/ReportFirst" 
     DisplayName="reportfirst" /> 
</rsweb:ReportViewer> 

我在我的開發機器上使用本地主機,我使用的是SQL Server 2008,BIDS VS 3.5。

那麼爲什麼這不起作用? 在Firebug中,錯誤消息是 NetworkError:500內部服務器錯誤 - http://localhost:2063/Reserved.ReportViewerWebControl.axd

+0

[在ASP.net MVC站點中查看SSRS報告]的可能重複(http://stackoverflow.com/questions/4137835/viewing-ssrs-reports-in-an-asp-net-mvc-site) – Dismissile

回答

0

要回答我自己的問題,我發現我不得不利用Reporting Services配置管理器(開始 - >所有程序 - > Microsoft SQL Server 2008 - >配置工具 - > Reporting Services配置管理器),並通過設置工作。報告查看器現在可以鏈接到報告。這留下了一些其他問題,但我會在我的下一個問題中提出這個問題。

0

你必須把它放在網頁上,用<form runat="server"> </form>標籤環繞它。您還必須進行web.config更改以註冊控件並添加相應的處理程序。

相關問題