使用WPF在VS2010的Crystal Reports中导出到EXCEL [英] Export to EXCEL in Crystal Reports for VS2010 using WPF

查看:59
本文介绍了使用WPF在VS2010的Crystal Reports中导出到EXCEL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我创建了一个小应用程序来接收一些参数,例如RPT文件,目标文件名,格式和报告参数.

在使用参数加载de RPT并获取结果后,如果我尝试通过代码导出为XLS格式,或者在CrystalReportViewer中打开结果并尝试将其导出为相同格式后,应用程序将挂起并关闭.

所有其他格式都可以毫无问题地导出,即使只有数据的XLS格式也可以成功导出,只有带有PDF外观的XLS格式挂起并关闭我的应用程序...

谁能帮我解决这个问题?

我在Windows 7 32B环境中使用带有WPF Windows和VStudio2010的C#.

.NET Framework 4.0的Crystal Reports

Hi,

I created a small application to receive some parameters like RPT file, destination filename, format and report parameters.

After loading de RPT with the parameters and getting the result, if i try to export by code to XLS format or after opening the result in the CrystalReportViewer and try to export it to the same format, the application hangs and closes.

All other formats, can be exported with no problem, even the XLS format with data only can be exported with success, only the XLS format with the appearance of the PDF hangs and shutdown my app...

Can anyone help me with this issue?

I''m using C# with WPF windows and VStudio2010 in a windows 7 32B environment.

Crystal Reports for .NET Framework 4.0

using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;


提前谢谢您.

Ricardo


Thank you in advance.

Ricardo

推荐答案

好吧,最新版本的VS2010水晶报表似乎存在某种问题.

您是否正在将Crystal Reports 13与SP4和Visual Studio 2010一起使用,并且具有带子报表的RPT,如果尝试通过代码或查看器将其导出到EXCEL(XLS),则应用程序将生成运行时错误并关闭.如果仅导出到Excel数据,那么没有任何问题.

此问题已报告给SAP支持.

http://scn.sap.com/thread/3210737

希望对您有帮助.

问候.
Ok, It seems to have some kind of issue with this last version of crystal reports withe VS2010.

Is you are using Crystal Reports 13 with SP4 and Visual Studio 2010 and you have an RPT with subreports, if you try to export it by code or by the viewer to EXCEL (XLS), your application will generate a runtime error and close. If you export to Excel data only, there''s no problem what so ever.

This issue is already reported to SAP Support.

http://scn.sap.com/thread/3210737

Hope it helps you.

Regards.


这篇关于使用WPF在VS2010的Crystal Reports中导出到EXCEL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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