使用水晶报表时出现问题 [英] Problem using crystal reports
本文介绍了使用水晶报表时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好!
我正在尝试使用Crystal Reports生成报告.
当我构建解决方案时,它向我显示错误
Hi all!!
I am trying to generate a report using crystal reports.
when i build the solution it shows me error that
The type ''CrystalDecisions.Web.CrystalReportViewer'' exists in both ''c:\Windows\assembly\GAC_MSIL\CrystalDecisions.Web\13.0.2000.0__692fbea5521e1304\CrystalDecisions.Web.dll'' and ''c:\Windows\assembly\GAC_MSIL\CrystalDecisions.Web\10.5.3700.0__692fbea5521e1304\CrystalDecisions.Web.dll'' C:\Users\Ujjwal\Documents\Visual Studio 2010\WebSites\4.0\Crystal\Default.aspx
当我删除引用时,它向我显示:
when i remove the reference, it shows me that:
The type ''CrystalDecisions.CrystalReports.Engine.ReportDocument'' exists in both ''c:\Windows\assembly\GAC_MSIL\CrystalDecisions.CrystalReports.Engine\10.5.3700.0__692fbea5521e1304\CrystalDecisions.CrystalReports.Engine.dll'' and ''c:\Windows\assembly\GAC_MSIL\CrystalDecisions.CrystalReports.Engine\13.0.2000.0__692fbea5521e1304\CrystalDecisions.CrystalReports.Engine.dll''
之后,它向我显示了无效的报告来源.
我正在使用代码项目文章来撰写此报告
在Visual Studio 2010中使用Crystal Reports生成报告 [ ^ ]
请帮帮我,我很久以来一直被困在这里,似乎找不到合适的解决方案.
after that it shows me invalid report source.
I am using a code project article to make this report
Generate a Report using Crystal Reports in Visual Studio 2010[^]
Please help me out i am stuck here from ages and can''t seem to find a suitable solution.
推荐答案
因为您在同一解决方案中添加了不同的Crystal报表引用. ......只取更新的一个...我希望它能解决Ur问题....
Because u added different Crystal report references in same solution....... Take only the updated one ... i hope it will solve Ur problem....
听起来您的应用程序引用了两个版本v13.0和v10.5.您需要确保您的应用程序仅引用一个版本的CR.
删除不需要的一个引用,并检查Web.Config文件中是否只有一个引用-您需要的一个引用.
清除缓存.清理然后重新构建应用程序.
It sounds like your application has references to two versions v13.0 & v10.5. You need to make sure that your application is only referencing one version of CR.
Remove one reference not needed and check Web.Config file that only one reference is present - the one which you need.
Clear your cache. Clean and then rebuild the application.
我试图更改web.config中的程序集引用,但是即使我删除了所有的v10.5引用,它也无法正常工作也适用于v13.
然后我只在.aspx页面中更改了版本,它就起作用了..:)
I was trying to change the assembly reference in web.config but it didn''t worked even when i have removed all the v10.5 references which were also there for v13.
Then i only change the version in my .aspx page and it worked.. :)
这篇关于使用水晶报表时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文