• 水晶报表中图片不显示解决方案


    1、配置水晶报表组件

    首先,确认服务器上的报表组件的版本是否正确。
    如果你使用的是VisualStudio SDK 安装, 你可以看到CRRedist2005_x86.msi, 它所在的文件夹:C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\CrystalReports。在机子上运行,确定报表所需的组件全部安装在机子 上。

    来源:http://bloggingabout.net/blogs/jschreuder/archive/2007/12/10/crystal-reports-for-visual-studio-2005-deployment-trouble.aspx

    2、Web.Config 配置
    <add key="CrystalImageCleaner-AutoStart" value="true"/>
    <add key="CrystalImageCleaner-Sleep" value="60000"/>
    <add key="CrystalImageCleaner-Age" value="120000"/>

    <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, 
     CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

    3、 aspnet_client files

    必须有CrystalReportWebFormViewer3文件夹 或者 crystalreportviewers115
    \aspnet_client\system_web\2_0_50727 \CrystalReportWebFormViewer3(或者crystalreportviewers115)
    它应该在 C:\WINNT\Microsoft.NET\Framework\v2.0.50727\ASP.NETClientFiles.
    4、在IIS 中crystalreportviewers115 虚拟站点设置正确。虚拟站点的属性中的ASP.NET里面的ASP.NET Version 设置正确。


    Deploy Crystal components

    First, and rather obvious, is to make sure the correct version of Crystal components are installed on the server. If you have the Visual Studio SDK installed, you can look for CRRedist2005_x86.msi, which is in this folder C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\CrystalReports on your machine. Running that installation on the server will make sure all components required for Crystal Reports are properly installed on your machine.

    If you have a setup project for your web application, you can add a merge module to that project. Crystal Reports provides four merge modules for download at this location. Depending on your needs, you may need to add any combination of these to your setup project. Which module is required for your application can be found in this document on the Business Objects support site.

    Web.Config settings

    In order for a Crystal Reports viewer to work, the following settings must be added to the appSettings section in the web.Config file:

    <add key="CrystalImageCleaner-AutoStart" value="true"/>
    <add key="CrystalImageCleaner-Sleep" value="60000"/>
    <add key="CrystalImageCleaner-Age" value="120000"/>

    This will ensure that the temporary images for Crystal are removed when they are no longer required. The following setting must be added the the httpHandlers section.

    <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, 
     CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

    This is required, because otherwise all you will see is an empty box with a red cross in it.

    aspnet_client files

    Last, but certainly not least, check the aspnet_client folder in the root folder of your web site. This folder should contain a folder with the name CrystalReportWebFormViewer3. That folder must exist in the following path: system_web\2_0_50727. If that folder is not there, copy it from your local machine. It should be in the folder C:\WINNT\Microsoft.NET\Framework\v2.0.50727\ASP.NETClientFiles.


  • 相关阅读:
    python mysql操作
    常用sql语句总结
    python 正则表达式总结
    hdu 6199 dp
    hdu 6212 区间dp
    hdu 6214 割边最少的最小割
    2017沈阳网络赛G XOR 分块(分类讨论sqrt)
    HDU 6166 二进制分组
    hdu 6194 后缀数组
    hdu 6201 树分治
  • 原文地址:https://www.cnblogs.com/lfzwenzhu/p/1749500.html
Copyright © 2020-2023  润新知