在 Asp.net 开发中未显示水晶报表查看器工具栏图像 [英] Crystal report viewer tool bar images not displayed in development in Asp.net

查看:13
本文介绍了在 Asp.net 开发中未显示水晶报表查看器工具栏图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在我的一个项目中使用水晶报表 11.5 与 2008 显示报表,当我尝试在水晶报表查看器中显示报表时,报表显示正确,但工具栏图标(First、Prev、Next、print、等等..)图像没有显示出来,点击这些按钮中的任何一个,报告都会消失,并给出一个空白页.相同的图像也可在路径 C:Inetpubwwwrootaspnet_clientsystem_web2_0_50727crystalreportviewers115 中找到.如果还有其他事情要做,请告诉我.

We are using crystal report 11.5 in vs. 2008 to display report in one of my projects, when I try to display a report in crystal report viewer reports are displayed properly but the toolbar icons (First, Prev, Next, print, etc..) images are not getting displayed and on click of any of these buttons the report vanishes giving a blank page. the images for the same are also available at the path C:Inetpubwwwrootaspnet_clientsystem_web2_0_50727crystalreportviewers115. Please let me know if there any other thing to be done.

<CR1:CrystalReportViewer id="CrystalReportViewer1" style="Z-INDEX: 102; LEFT: 8px; POSITION: absolute; TOP: 32px" runat="server" Height="50px" Width="350px" ></CR1:CrystalReportViewer>

谢谢,
阿文德

推荐答案

分析问题

可以分析问题

  • 使用客户端工具(浏览器的调试窗口)
  • using client tools (debug window of browser)

GET http://myserver:20080/aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/crv.js 403(禁止)获取 http://myserver:20080/aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/images/style.css 403(禁止)

GET http://myserver:20080/aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/crv.js 403 (Forbidden) GET http://myserver:20080/aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/images/style.css 403 (Forbidden)

  • 服务器工具(IIS日志,WIN2003上放在%SYSTEMROOT%System32LogFilesW3SVC###).
    • or server tool (IIS log , on WIN2003 is placed in %SYSTEMROOT%System32LogFilesW3SVC###).
    • 2011-03-28 13:00:49 W3SVC701536 95.228.38.41 GET/aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/images/style.css - 20080 - 192.168.1.2 Mozilla/5.0+(兼容;+MSIE+9.0;+Windows+NT+6.1;+Trident/5.0) 403 6 64 错误!2011-03-28 13:00:49 W3SVC701536 95.228.38.41 GET/aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/crv.js - 20080 - 192.168.1.2 Mozilla/5.0+(兼容;+MSIE+9.0;+Windows+NT+6.1;+Trident/5.0) 403 6 64 错误!

      2011-03-28 13:00:49 W3SVC701536 95.228.38.41 GET /aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/images/style.css - 20080 - 192.168.1.2 Mozilla/5.0+(compatible;+MSIE+9.0;+Windows+NT+6.1;+Trident/5.0) 403 6 64 Errore! 2011-03-28 13:00:49 W3SVC701536 95.228.38.41 GET /aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/crv.js - 20080 - 192.168.1.2 Mozilla/5.0+(compatible;+MSIE+9.0;+Windows+NT+6.1;+Trident/5.0) 403 6 64 Errore!

      导致问题

      • 在这两种情况下,我发现 crv.jsstyle.css 一些文件没有提供;
      • 这些文件由 CR 安装程序放置在 wwwrootaspnet_client 文件夹中,但由于某些原因无法访问;
      • 在我的情况下,原因是我创建了一个不同的网站(端口 20080)并且 aspnet_client 文件夹没有放在该网站内
      • Cause the problem

        • In both cases i found that crv.js and style.css some files were not served;
        • these files are placed by CR installer in wwwrootaspnet_client folder, but for some reasons they cannot be reached;
        • In my case the reason is that i create a different website (port 20080) and aspnet_client folder is not placed inside that website
        • 我可以看到你使用不同版本的软件和不同的配置,但我认为你有同样的问题.

          I can see that you use different versions of software and different configurations, but i think you have the same problem.

          解决方案是以这种方式在 IIS 上工作:

          The solution is to work on IIS this way:

          • aspnet_client 文件夹c:inetpubwwwroot 文件夹复制到新网站根文件夹.
          • Copy aspnet_client folder from c:inetpubwwwroot folder to the new website root folder.

          • 创建一个名为 aspnet_client 的虚拟目录,它指向 c:inetpubwwwroot 在新网站内
          • Create a virtual directory called aspnet_client that points to c:inetpubwwwroot inside the new website

          这篇关于在 Asp.net 开发中未显示水晶报表查看器工具栏图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆