开发者

.NET 4.0 & CrystalReports

开发者 https://www.devze.com 2023-01-03 10:40 出处:网络
I have a dll build with target framework 3.5 that manage reports; this dll use the version 10.5.3700.0 of CrystalDecisions.CrystalReports.Engine

I have a dll build with target framework 3.5 that manage reports; this dll use the version 10.5.3700.0 of CrystalDecisions.CrystalReports.Engine

Now, I have created a new wpf application based on .NET framework 4.0 and I added the report dll reference to project.

I had to install the Crystal Reports for Visual Studio 2010 library (http://www.businessobjects.com/jump/xi/crvs2010/default.asp) to build the application without errors...now it builds success, but the report print don't work.

It's generate an error when set datasource...the message is:

Unknown Query Engine Error Error in File C:\DOCUME~1\oli15\IMPOST~1\Temp\MyReport {4E514D0E-FC2C-4440-9B3C-11D2CA74895A}.rpt: ... Source=Analysis Server ErrorCode=-2147482942 StackTrace: at CrystalDecisions.ReportAppServer.Controllers.DatabaseControllerCla开发者_JAVA技巧ss.ReplaceConnection(Object oldConnection, Object newConnection, Object parameterFields, Object crDBOptionUseDefault) at CrystalDecisions.CrystalReports.Engine.Table.SetDataSource(Object val, Type type) at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type)

I think that it use a different version reference for CrystalDecisions.CrystalReports.Engine, it's possible?

How can tell it to use the 10.5.3700.0 version?


For persons using this in Managed C++, the solutions posted in the comments are only part of the solution. I've also applied what is stated on http://www.codeproject.com/KB/mcpp/WorkingWithConfigFiles.aspx after some days of desperation, and now I am happy to look to my projects working on wheels :)

0

精彩评论

暂无评论...
验证码 换一张
取 消