Crystal报告没有处理预先存在的项目 [英] Crystal reports not working on pre-existing project

查看:47
本文介绍了Crystal报告没有处理预先存在的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始了一个项目,这是一个Windows表单项目,当时没有考虑水晶报告,但我需要使用它们。  我使用向导创建了一个报告,并安装了SAP网站上的所有必需文件以使用Visual Studio 2010
并且报告似乎完美创建,但当我去查找Crystal Report Viewer时,它不是在那里。  另一件令我感到奇怪的事情是我得到错误声称文件和变量不正确并且缺少依赖项。  我
创建了一个WPF项目,我相信它的调用和工作我能够创建一个水晶报告并成功编译。  所以我查看了该项目中包含的所有引用并将它们添加到我现有的项目中,并且
仍然没有成功。  我不确定如何在现有项目中使用水晶报告,但我们将非常感谢任何帮助。


 


工作了宝贝

解决方案

你可能缺少web.config,应该是这样的:


 



<



 



 



编译
debug = " true "
targetFramework = " 4.0 " > < font face ="Consolas"size ="2"color ="#0000ff">


<



 



 




程序集 >



<


< font face ="Consolas"size ="2"color ="#0000ff">

 



 



add
assembly = " CrystalDecisions.Web,
Version = 13.0.2000.0,Culture = neutral,PublicKeyToken = 692FBEA5521E1304
" />


<



 



 




add
assembly = " CrystalDecisions.Shared,
Version = 13.0.2000.0,Culture = neutral,PublicKeyToken = 692FBEA5521E1304
" />


<



 



 




add
assembly = " CrystalDecisions.ReportSource,
Version = 13.0.2000.0,Culture = neutral,PublicKeyToken = 692FBEA5521E1304
" />


<



 



 




add
assembly = " CrystalDecisions.ReportAppServer.Controllers,
Version = 13.0.2000.0,Culture = neutral,PublicKeyToken = 692FBEA5521E1304
" />


<



 



 




add
assembly = " CrystalDecisions.ReportAppServer.DataDefModel,
Version = 13.0.2000.0,Culture = neutral,PublicKeyToken = 692FBEA5521E1304
" />


<



 



 




add
assembly = " CrystalDecisions.CrystalReports.Engine,
Version = 13.0.2000.0,Culture = neutral,PublicKeyToken = 692FBEA5521E1304
" />



I started a project and it was a windows forms project not thinking about crystal reports at the time, but I need to use them.  I created a report with the wizard and installed all the required files from SAP website to work with Visual Studio 2010 and the report seems to be created perfectly, but when I go to look for the Crystal Report Viewer it isn't there.  Another thing that is odd to me is I get errors claiming files and variables aren't correct and there are missing dependencies.  I created a WPF project I believe its called and that worked I was able to create a crystal report and compile successful.  So I went and looked over all references that were included in that project and added them to my existing project and it still wasn't successful.  I am not sure how I go about getting crystal reports working in my existing project, but any help would be greatly appreciated.

 


Workin it out baby

解决方案

Could be web.config you are missing, there should be something like this:

 

<

 

 

compilation debug="true" targetFramework="4.0">

<

 

 

assemblies>

<

 

 

add assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

<

 

 

add assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

<

 

 

add assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

<

 

 

add assembly="CrystalDecisions.ReportAppServer.Controllers, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

<

 

 

add assembly="CrystalDecisions.ReportAppServer.DataDefModel, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

<

 

 

add assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>


这篇关于Crystal报告没有处理预先存在的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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