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

摘要:
在机器上运行以确保报告所需的所有组件都安装在机器上。资料来源:http://bloggingabout.net/blogs/jschreuder/archive/2007/12/10/crystal-reports-for-visual-studio-2005-deployment-trouble.aspx2网状物配置3.aspnet_客户端文件必须具有CrystalReportWebFormViewer3文件夹或crystalreportviewers115 aspnet_ client\system_web\2_ 0_ 50727 CrystalReportWebFormViewer 3应该在C:WINNT Microsoft中正确设置。NET Framework v2.0.50727 ASP。NETClientFiles。4和IIS中的crystalreportviewers115虚拟站点。ASP。NET版本。NET在虚拟站点属性中的设置正确。

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.


免责声明:文章转载自《水晶报表中图片不显示解决方案》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇golang gin框架使用swagger生成接口文档CL.exe下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

水晶报表开发之常用代码以及注意事项

    水晶报表查看器CrystalReportViewer的ReportSource属性是object,目前对其赋值一般采用两种方式。第一种是采用返回ReportClass对象实例的方式,第二种是采用ReportDocument返回报表文件的方式。他们各有优劣。采用ReportClass oRpt = new ReportClass();的方式最终的发布...

水晶报表,不能在IE里预览。

如果未IE安装 pdf reader 插件, 将不能预览打印,只能下载: 安装 Adobe_Reader_XI_zh_CN 后,让IE启用插件即可。 1, 下载地址: 下载 2, 安装 3, 设置IE options, 启用插件: 4, 完成, 打开打印链接,即可正常预览:...

水晶报表 VS2010 应用

VS.NET2010水晶报表安装部署[VS2010] 欢迎C#高手加盟QQ群:9340166 水晶报表VS2010版IDE安装标准版SAP Crystal Reports, version for Visual Studio 2010 - Standard: 下载地址:http://downloads.businessobjects.com/akdlm/c...

VS.NET2010水晶报表安装部署[VS2010]

水晶报表VS2010版IDE安装标准版SAP Crystal Reports, version for Visual Studio 2010 - Standard: 下载地址: http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_1.exe   下载安装后打开VS2010就可以...

SAP B1:水晶报表中用Code128制作条型码的方法

一、在【文件系统】中新建一个【Fonts文件夹】,然后添加【Code128.ttf】文件。 二、在水晶报表里的【字段资源管理器】的【公式字段】中新建一个公式字段。点击【使用编辑器】之后弹出【公式工作室】。 三、在【公式工作室】中的【报表自定义函数】新建一个函数,在代码框中输入如下代码(VB代码): Function fncGetCd128SetB ( s...

部署水晶报表的打包安装

  有水晶报表的程序打包时还需要做的事项: 参考网站:http://community.csdn.net/Expert/topic/3770/3770083.xml?temp=.9249536 安装部署时,把水晶报表的msm打进去,注册到服务器要部署使用 Crystal Reports for Visual Studio .NET 2003 的程序; 首先...