Crystal Report Viewer control isn#39;t loading the images inside the report(Crystal Report Viewer 控件未加载报表内的图像)
问题描述
我有一个 ASP.Net (.Net 2.0) 应用程序,它创建 Crystal Reports(11.5 版)并使用 CrystalReportViewer 控件显示它们.由于某种原因,该控件未在报告标题中显示徽标图像.它呈现以下 html
I have an ASP.Net (.Net 2.0) application that creates Crystal Reports (version 11.5) and shows them with CrystalReportViewer control. For some reason the control isn't showing the logo image in the header of the report. It renders the following html
<img width="320" height="76" alt="Imagem" src="CrystalImageHandler.aspx?dynamicimage=cr_tmp_image_e47fba99-96fc-471b-ab11-06fd2212bbdd.png" border="0"/>
我已经在 IIS 的虚拟目录中包含了 aspnet_client 文件夹.
I already included the aspnet_client folder in my Virtual Directory in IIS.
任何想法为什么会发生这种情况?
Any ideas why this happens?
推荐答案
刚刚想通了.
由于某种原因,CrystalImageHandler 没有在 web.config 中定义.
For some reason the CrystalImageHandler wasn't defined in the web.config.
只需将以下行添加到 HttpHandler 部分,它就可以工作了.(Version 和 PublicKeyToken 值对于其他版本的 Crystal Reports 会有所不同)
Just added the following line to the HttpHandler section and it worked. (The Version and PublicKeyToken values will be diferent for other versions of Crystal Reports)
<add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
这篇关于Crystal Report Viewer 控件未加载报表内的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Crystal Report Viewer 控件未加载报表内的图像


基础教程推荐
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01