简体   繁体   English

Crystal Report Viewer控件未在报表中加载图像

[英]Crystal Report Viewer control isn't loading the images inside the report

I have an ASP.Net (.Net 2.0) application that creates Crystal Reports (version 11.5) and shows them with CrystalReportViewer control. 我有一个ASP.Net(.Net 2.0)应用程序,它创建Crystal Reports(版本11.5)并使用CrystalReportViewer控件显示它们。 For some reason the control isn't showing the logo image in the header of the report. 由于某种原因,控件未在报告的标题中显示徽标图像。 It renders the following html 它呈现以下html

<img width="320" height="76" alt="Imagem" src="CrystalImageHandler.aspx?dynamicimage=cr_tmp_image_e47fba99-96fc-471b-ab11-06fd2212bbdd.png" border="0"/>

I already included the aspnet_client folder in my Virtual Directory in IIS. 我已经在IIS中的虚拟目录中包含了aspnet_client文件夹。

Any ideas why this happens? 任何想法为什么会这样?

Just figured it out. 刚想通了。

For some reason the CrystalImageHandler wasn't defined in the web.config. 由于某种原因,未在web.config中定义CrystalImageHandler。

Just added the following line to the HttpHandler section and it worked. 只需将以下行添加到HttpHandler部分就可以了。 (The Version and PublicKeyToken values will be diferent for other versions of Crystal Reports) (对于其他版本的Crystal Reports, VersionPublicKeyToken值将不同)

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

Goes in httpHandlers . 进入httpHandlers

Found it configured by default for CR2008 aka XII 发现它默认配置为CR2008 aka XII

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM