为什么Crystal Report在visual studio 2008中不起作用?

时间:2015-01-28 10:48:20

标签: visual-studio c#-4.0 visual-studio-2012 visual-studio-2008 crystal-reports

我的计算机VS 2012中有两个视觉工作室,而2008年则有.rpt即水晶报告。

我安装了 CRforVS_13_0_5 并且它在VS 2012终极版中工作但在vs 2008中没有工作,即它会抛出错误。

Error   1   The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)

参考文献显示黄色缺少这些文件

Warning 1   The referenced component 'CrystalDecisions.CrystalReports.Engine' could not be found.   
Warning 2   The referenced component 'CrystalDecisions.Enterprise.Framework' could not be found.    
Warning 3   The referenced component 'CrystalDecisions.Enterprise.InfoStore' could not be found.    
Warning 4   The referenced component 'CrystalDecisions.ReportSource' could not be found.    
Warning 5   The referenced component 'CrystalDecisions.Shared' could not be found.  
Warning 6   The referenced component 'CrystalDecisions.Windows.Forms' could not be found.   

1 个答案:

答案 0 :(得分:0)

您需要支持Visual Studio 2008的Crystal Reports版本(并在.Net Framework 3.5上运行)。这应该适用于大多数报告,但它较旧,因此如果您预计2012年正在使用的较新版本的修复程序可能会出现问题。请查看这些链接,了解2008年的CR下载:

http://scn.sap.com/docs/DOC-27917 http://scn.sap.com/docs/DOC-27942