Crystal Report Viewer 控件未加载报表内的图像

Crystal Report Viewer control isn#39;t loading the images inside the report(Crystal Report Viewer 控件未加载报表内的图像)

本文介绍了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 部分,它就可以工作了.(VersionPublicKeyToken 值对于其他版本的 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 控件未加载报表内的图像

基础教程推荐