ASP.NET3.5中的水晶报表 [英] Crystal Reports in ASP.NET3.5

查看:190
本文介绍了ASP.NET3.5中的水晶报表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在ASP.NET 3.5应用程序中添加水晶报表查看器,但它给我这个错误。

I am trying to add crystal report viewer in ASP.NET 3.5 application, but its giving me this error.

类型CrystalDecisions.Enterprise.EnterpriseSession在未引用的程序集中定义。您必须向程序集CrystalDecisions.Enterprise.Framework,Version = 10.5.3700.0,Culture = neutral,PublicKeyToken = 692fbea5521e1304'添加引用。

The type 'CrystalDecisions.Enterprise.EnterpriseSession' is defined in an assembly that is not referenced. You must add a reference to assembly 'CrystalDecisions.Enterprise.Framework, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'.

.config文件下的assembly标签,添加引用也。但仍然出现此错误。

I have added this in web.config file under assemblies tag, added reference also. But still giving this error.

有任何想法吗

谢谢。 $ b

推荐答案

是否将Crystal Report Viewer控件从工具箱拖动到您的网页?如果没有,请尝试这样做。 Visual Studio通常很好找到所有适当的引用,并添加它们,当你这样做。

Did you drag the Crystal Report Viewer control from the toolbox to your web page? If not, try doing it that way. Visual Studio is usually good to find all the appropriate references and add them when you do things that way.

除此之外,你可能需要添加一些额外的库web.config。在我使用Crystal的应用程序中,我有以下引用的文件:

Aside from that, you may need to add some additional libraries to your web.config. In my apps using Crystal, I have the following files referenced:

<assemblies>       
   <add assembly="CrystalDecisions.Web, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
   <add assembly="CrystalDecisions.Shared, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
   <add assembly="CrystalDecisions.ReportSource, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
   <add assembly="CrystalDecisions.Enterprise.Framework, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
   <add assembly="CrystalDecisions.Enterprise.Desktop.Report, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
   <add assembly="CrystalDecisions.ReportAppServer.Controllers, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
   <add assembly="CrystalDecisions.CrystalReports.Engine, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
   <add assembly="CrystalDecisions.Enterprise.InfoStore, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
   <add assembly="CrystalDecisions.Enterprise.Viewing.ReportSource, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
   <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
</assemblies>

此外,在关闭system.web标记之前,我还添加了以下httpHandler: / p>

In addition, just before the closing system.web tag, I also have the following httpHandler added:

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



我的应用程序使用的是11r2版本的Crystal Reports,因此一些库可能存在或不存在,但大多数是相同的。

My app is using version 11r2 of Crystal Reports, so a few of the libraries may or may not exist, but most of them are the same.

这篇关于ASP.NET3.5中的水晶报表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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