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:\

     

  • 相关阅读:
    殷浩详解DDD:如何避免写流水账代码?
    如何从 0 到 1 开发 PyFlink API 作业
    探秘RocketMQ源码——Series1:Producer视角看事务消息
    教父郭盛华透露:PHP编程语言中多个代码执行缺陷
    互联网用户仍然容易受到黑客社会工程学攻击
    揭秘郭盛华在世界的排名,才华与颜值并存的男神
    什么是逆向工程?黑客是如何构建可利用的漏洞?
    人工智能时代,计算机网络主要面临哪些安全威胁?
    【2020-10-01】国庆堵车不堵心
    【2020-09-30】走起来慢,但实际很快
  • 原文地址:https://www.cnblogs.com/conghuip/p/1857270.html
Copyright © 2011-2022 走看看