在VS 2010中的Crystal Reports无法正常工作的Web服务器上无法正常、器上、工作、VS

2023-09-06 19:21:31 作者:天会亮、心会暖

我使用水晶报表生成报表并将其保存为一个文件夹中的PDF文件。一切工作正常在本地机器上。在code工作正常,并生成报告,并保存为PDF格式为好。

I am using crystal reports to generate a report and save it as a PDF in a folder. Everything works fine on the local machine. The code is working fine and the report is generated and saved as a PDF as well.

现在,未来的服务器,我没有VS 2010安装在Web服务器上。但是,我不得不说我在服务器上部署的ASP.NET框架建立了一个网站的应用程序在VS2010,它工作正常,即使在服务器上没有VS2010。

Now, coming to the server, I do not have a VS 2010 installed on the web server. But I had a website application created in ASP.NET framework in VS2010 that I deployed on the server and it is working fine even with no VS2010 on the server.

但现在我不得不生成水晶报表,并将其保存在文件夹中。这是相同的网站的另一个模块。但是,当我把在.aspx和.aspx.cs和.RPT文件的服务器上,我得到一个错误分析器错误信息:未能加载文件或程序集,版本= 13.0.2000.0,文化=中立,公钥= 692fbea5521e1304'或一个依赖项,系统找不到指定的文件。

But now I had to generate the crystal report and save it in the folder. This is another module of the same website. But when I put the .aspx and .aspx.cs and .rpt file on the server, I get an error "Parser Error Message: Could not load file or assembly 'CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified".

于是,我试着从此处但它说,它需要VS 2010年完成安装。所以,不知道如果我能做到这一点不VS 2010的服务器上。

So, I tried installing the crystal report package from here but it says it needs VS 2010 for completing the installation. So, not sure if I can do it without VS 2010 on the server.

有没有什么办法没有VS 2010做的服务器上,或者我到服务器,或者其他设施上安装VS 2010肯定能帮助我吗?

Is there any way to do it with no VS 2010 on the server, or I have to install VS 2010 for sure on the server, or any other installation that can help me?

推荐答案

您需要的Crystal Reports 2010可再发行组件位于此处(该SAP网站是不是最友好的):

You need the Crystal Reports 2010 Redistributable located here (The SAP website is not the friendliest):

SAP Crystal Reports中,开发者版本的Microsoft Visual Studio的更新与放大器;运行下载

P.S。 :SAP网站如有更改,不介意编辑或评论这个答案了最新的资讯

P.S. : SAP website is subject to change, don't mind editing or commenting this answer with up to date info.