Crystal Report Engine错误

时间:2017-10-07 06:34:48

标签: visual-studio-2013 crystal-reports

我遇到了有关Crystal Report 13的问题。我正在开发Visual Studio 2013开发Web应用程序。

之前我已经开发了报告并且这些报告工作正常,但在网页上的水晶报表查看器停止渲染一段时间后。我尝试通过不同论坛上的建议解决问题,我需要在Web.Config中添加Crystal Report 13文件的引用。在所有更改之后问题仍未解决。比人们建议我重新安装水晶报告13的再分配包,我做了同样的事情,现在有一个新的问题,这是完全不同的。每当我试图打开页面时,它都会显示以下错误:

Server Error in '/Abcd' Application.
The document has not been opened.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: The document has not been opened.

我尝试了很多论坛和不同的建议,但一切似乎都没用,我已经检查了相应的权利,即使在提供完全权利但仍然处于相同位置后尝试。

1 个答案:

答案 0 :(得分:2)

I've found the alternative solution, before i was using 13.0.21 redistribution package which was using registry dlls version 13.0.2000.0, i was facing two problems using that particular version. 1. Unable to edit rpt file, whenever i tried to open it an error appear on screen that The operations is failed or unable to complete operation (something like that i don't know exactly what the error is but the summary is this) 2. When i try to open Crystal report viewer during execution, i've come up with error which i posted earlier.

What i have done for the resolution, that i've download Crystal report developer version 13.0.21 and install it with "Run as Administrator" because i creates some entries in your registry of windows, keep in your mind to close VS during installation. After successful installation both problems are solved but u need to change the dlls version in your code from 13.0.2000.0 to 13.0.3500.0