水晶报道2010年报道观察失踪 [英] crystal reports 2010 reportviewer is missing

查看:84
本文介绍了水晶报道2010年报道观察失踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用vs2010并为vs2010下载了SAP Crystal Reports并安装了它。现在我可以将Crystal报表文件添加到项目中,但Crystal报表查看器处于非活动状态,并且不会显示在工具箱中。这有什么问题?在VS中有任何额外的配置吗?我可以使用VS默认reportviewer而不是crystalreportviewr吗?

解决方案

好吧,我说有问题我安装了SAP Crystal Reports for VS2010,我可以添加.rpt文件到项目;那我为什么要下载Crystal viewr呢?这不是一个好的解决方案。

但我只需按照以下两个步骤解决它:

 1)在项目属性窗口的应用程序选项卡中更改了从.Net Framework 4.0客户端配置文件到.Net Framework 4.0的目标框架
2)添加了对项目
的CrystalDecisions.Windows.Forms引用(在解决方案资源管理器中右键单击参考文件夹并选择为我这样的新手添加参考 - >



现在我可以将crystalreportviewer添加到我的项目中,因为在这两个步骤后它出现在工具箱中。

如果没有第1步,我们就无法执行第2步,因为当我们想要添加对项目的引用时,VS2010会过滤引用并只显示目标框架引用并允许添加它们。 CrystalDecisions.Windows.Forms是.Net Framework 4.0的一部分而不是.Net Framework 4.0客户端配置文件

令人困惑......


有看一下这个讨论:关于类似问题的讨论 [ ^ ]

这个链接/博客 [ ^ ]解释了所有必要的细节。



这是因为微软决定不在他们的VS 2010中加入Crystal。尽管如此,它仍然可用,而且是免费的。



从这里下载: Crystal Viewer download [ ^ ]

I use vs2010 and downloaded SAP Crystal Reports for vs2010 and installed it. Now I can add a Crystal reports file to project but the Crystal reports viewer is inactive and do not be shown in toolbox. What is wrong with it? is there any extra configuration in VS? Can I use VS default reportviewer instead of crystalreportviewr?

解决方案

Well, I said in question that I installed SAP Crystal Reports for VS2010 and I can add a .rpt file to project; So why I should download Crystal viewr? that's not a good solution.
But I solve it just by following two steps:

1) In project Properties window in the Application tab changed the Target Framework from ".Net Framework 4.0 client profile" to ".Net Framework 4.0"
2) Added the CrystalDecisions.Windows.Forms reference to project
(in solution explorer right click in Reference folder and choose "Add Reference" --> for newbies such me)


Now I can add a crystalreportviewer to my project because after these two steps it appears in toolbox.
Without step 1 we can't do step 2 because When we want to add a Reference to project, the VS2010 filter the references and just show Target Framework references and allow to add them. CrystalDecisions.Windows.Forms is a part of ".Net Framework 4.0" not ".Net Framework 4.0 client profile"
It's so confusing...


Have a look at this discussion: Discussion on similar issue[^]
This link/blog[^] explains all the necessary details.

This is because Microsoft decided not to include Crystal in their VS 2010. Though, it is still available, and for free.

Download from here: Crystal Viewer download[^]


这篇关于水晶报道2010年报道观察失踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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