zoukankan      html  css  js  c++  java
  • Rdlc 報表在 asp.net web application 中部署

    下載ReportViewer.exe ReportViewerLP.exe 文件在服務器上執行

    當然也可以在dos

    copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.Common\9.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.Common.dll d:\

    copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.Common.resources\9.0.0.0_zh-CHT_b03f5f7f11d50a3a\Microsoft.ReportViewer.Common.resources.dll d:\

    copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.Design\9.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.Design.dll d:\

    copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.Design.resources\9.0.0.0_zh-CHT_b03f5f7f11d50a3a\Microsoft.ReportViewer.Design.resources.dll d:\

    copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.ProcessingObjectModel\9.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.ProcessingObjectModel.dll d:\

    copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WebDesign\9.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.WebDesign.dll d:\

    copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WebDesign.resources\9.0.0.0_zh-CHT_b03f5f7f11d50a3a\Microsoft.ReportViewer.WebDesign.resources.dll d:\

    copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\9.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.WebForms.dll d:\

    copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms.resources\9.0.0.0_zh-CHT_b03f5f7f11d50a3a\Microsoft.ReportViewer.WebForms.resources.dll d:\

    copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WinForms\9.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.WinForms.dll d:\

    copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WinForms.resources\9.0.0.0_zh-CHT_b03f5f7f11d50a3a\Microsoft.ReportViewer.WinForms.resources.dll d:\

    注:上面的 .resources文件為繁體中文,簡體中文為CHS 

    拷貝以上文件

    我們拷貝了那麼多dll,其實在asp.net 中隻需要

    Microsoft.ReportViewer.Common.dll

    Microsoft.ReportViewer.ProcessingObjectModel.dll

    Microsoft.ReportViewer.WebForms.dll

    和語言包

    Microsoft.ReportViewer.WebForms.resources.dll

    做完以上的事情,如果是在web site專案中部署,就已經全部OK,可以運行了,

    但如果是在web Appliction專案中部署,就會出現找不到對應的.rdlc報表文件

    因為web Appliction專案發行時,.rdlc文件是做為內嵌資源發行的,發行之後就根本就找不到這些以.rdlc結尾的報表文件。

    解決方法

    選擇.rdlc報表文件,屬性->建置動作:在下拉框中選: 內容。

    重新發信web application ,一切OK,搞定。

    附上vs2010的報表dll復制方法

    同樣是在dos下執行

     

    copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.Common\10.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.Common.dll d:\

    copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.Common.resources\10.0.0.0_zh-Hant_b03f5f7f11d50a3a\Microsoft.ReportViewer.Common.resources.dll d:\

    copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.ProcessingObjectModel\10.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.ProcessingObjectModel.dll d:\

    copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\10.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.WebForms.dll d:\

    copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms.resources\10.0.0.0_zh-Hant_b03f5f7f11d50a3a\Microsoft.ReportViewer.WebForms.resources.dll d:\

    copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WinForms\10.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.WinForms.dll d:\

    copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WinForms.resources\10.0.0.0_zh-Hant_b03f5f7f11d50a3a\Microsoft.ReportViewer.WinForms.resources.dll d:\

     

  • 相关阅读:
    自动化测试之读取配置文件 | 踩坑指南
    文未有福利 | BAT 名企大厂做接口自动化如何高效使用 Requests ?
    高效能 Tester 必会的 Python 测试框架技巧
    移动自动化测试从入门到高级实战
    1 天,1000+ 测试工程师分享了这个课程 | 年度福利
    H5性能分析实战来啦~
    接口测试实战 | Android 高版本无法抓取 HTTPS,怎么办?
    实战 | 接口自动化测试框架开发(Pytest+Allure+AIOHTTP+用例自动生成)
    第一期线上沙龙PPT领取方式
    Java日志第48天 2020.8.24
  • 原文地址:https://www.cnblogs.com/conghuip/p/1857270.html
Copyright © 2011-2022 走看看