发布后我得到空白报告。使用Crystal Reports 13(Visual Studio 2012 IIS 7) [英] I get blank report after publish. Using Crystal Reports 13 ( Visual Studio 2012 IIS 7)

查看:1061
本文介绍了发布后我得到空白报告。使用Crystal Reports 13(Visual Studio 2012 IIS 7)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的报告在本地机器上正常工作。我的意思是当从.net运行。即使我将报表部署到同一个系统也无法工作。我试过不同的解决方案,但没有运气。我已经检查了多个堆栈溢出问题和他们的解决方案,但仍然我被卡住。任何帮助将非常感激。

解决方案

刚刚发布我的问题在堆栈溢出后,我发现一个博客, 。因此,这可能有助于其他人在发布后无法查看水晶报告。因为我浪费了两天寻找这个问题的修复。最后,我发现解决方案在以下网站链接



所有的功劳都归于创建该博客的原作者。



此问题不会发生在本地,但发生在IIS中的服务器上托管站点。实际上,问题的原因是Crystal Report无法找到在浏览器中呈现报表所需的JavaScript(JS)文件



以下是步骤解决问题


  1. 为Visual Studio 2010下载并安装Crystal Reports 13的运行时。(您可能希望跳过此步骤如果您之前已经执行过此操作,并且您的应用程序正在本地运行)。


  2. Crystal Reports将在本地计算机的位置安装所需的支持文件:
    C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319\crystalreportviewers13


  3. 将整个Crystal Report支持文件夹C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319\crystalreportviewers13复制到您的网站的SITE_ROOT\aspnet_client \system_web\450_30319文件夹。


4)如果您的网站根目录中没有\aspnet_client\ system_web\4_0_30319文件夹。请手动创建它们,然后将crystalreportviewers13复制到其中。



注意:您可以复制整个aspnet_client文件夹,并将其覆盖到网站的根目录。它会工作


My reports are working perfectly on local machine. I mean when run from vs.net. The reports are not working even i deploy it to the same system. I tried different solutions but with no luck. I have checked multiple stack-overflow questions and their solutions but still i am stuck. Any help would be really appreciated.

解决方案

Just after posting my question here at stack-overflow i found a blog which solve my problem. So this may help other people having trouble to view crystal report after publishing. As I wasted two days searching for a fix to this issue. At last I found the solution on the following Site Link

All the credit goes to the Original Author who made that blog. I just copy/past his/her steps

Solution

This issue does not occur in local but happens when you host the site on server in IIS. Actually the cause of the issue is that Crystal Report is unable to find the required JavaScript (JS) files to render the report in browser

Below are the steps to resolve the issue

  1. Downloading and installing runtime for Crystal Reports 13 for Visual Studio 2010. (You might want to skip this step if you already did this before and your application is working locally).

  2. Once the runtime is installed. Crystal Reports will install the required support files in the location of your local computer: C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319\crystalreportviewers13

  3. Copy the entire Crystal Report Support folder C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319\crystalreportviewers13 to your Website's SITE_ROOT\aspnet_client\system_web\4_0_30319 folder.

4) If you do not have a \aspnet_client\system_web\4_0_30319 folders in your website's root. Please create them manually and then copy the crystalreportviewers13 into it.

NOTE: You can just copy the entire aspnet_client folder and past it to the site's root. It will work

这篇关于发布后我得到空白报告。使用Crystal Reports 13(Visual Studio 2012 IIS 7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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