ReportViewer9.0版 使用前說明

開發前要先安裝Microsoft ReportViewer9.0版(原Visual Studio 2005為8.0版),以下為Download網址http://www.microsoft.com/downloads/details.aspx?familyID=cc96c246-61e5-4d9e-bb5f-416d75a1b9ef&DisplayLang=en

======web.config需加入以下設定======
<add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, 
    PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, 
    PublicKeyToken=B03F5F7F11D50A3A" />
<httpHandlers>
<add verb="*" path="Reserved.ReportViewerWebControl.axd" 
    type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, 
    Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</httpHandlers>

====8.0版的Config
<add path="Reserved.ReportViewerWebControl.axd" verb="*" 
    type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, 
    Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 
    validate="false"/>

=====因VS2005不支援9.0的design mode,因此在design時可先用8.0,設定好在改為9.0
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral,
    PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

留言