Visual Studio 2010的RDLC将问题导出到Excel和Word [英] RDLC of Visual Studio 2010 Export problem to Excel and Word

查看:218
本文介绍了Visual Studio 2010的RDLC将问题导出到Excel和Word的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用Visual Studio 2010,因此RDLC 2010已经开发了几个报告,但是当我在开发人员计算机中运行项目并尝试在Excel中导出时,它工作正常。但是当我把我的项目放在UAT机器(IIS)上时,它只是拒绝
导出并出现以下错误

I am using Visual Studio 2010 and therefore have RDLC 2010 so developed couple of reports but when I run the project within developer machine and tries to export in Excel it works fine. But when I put my project on UAT machine (IIS) it simply refuses to export with the following error

"你要打开的文件'myreport [1] .xls'的格式与文件扩展名指定的格式不同。在打开文件之前验证文件是否已损坏并且来自受信任的来源。"

"The file you are trying to open 'myreport[1].xls' is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file."

然后问你是否要打开...当你选择YES然后它来了只是空白。

then it ask do u want to open anyway...when you select YES then it comes simply blank.

在UAT机器上安装了Office 2007但是这应该不是问题。我已经尝试使用reportviewer 2008在Visual Studio 2008中创建报表,并且它的导出很好。似乎出口与MS办公室有问题,并且不知何故无法与它集成
。虽然PDF出来很完美。

ON UAT machine there is office 2007 installed..but that shouldn't be the issue. I've tried creating report in Visual Studio 2008 with reportviewer 2008 and its exporting just fine. It seems that the export has problem with MS office and somehow cannot integrate with it. Although PDF comes out perfect.

可能是什么问题?请指导。

What can be the problem? please guide.

 

推荐答案

我仍然遇到类似的问题导出到Excel或来自本地.rdlc报告的Word。

I'm still having similar problems exporting to Excel or Word from a local .rdlc report.

http://social.msdn.microsoft.com/Forums/en-ca/sqlreportingservices/thread/505e68e6-4019-4950-8704-7982e5666797

上面的链接是我得到的一些建议,并尝试过...它们可能对你有用。

At the link above are some of the suggestions I got, and tried...they may work better for you.


这篇关于Visual Studio 2010的RDLC将问题导出到Excel和Word的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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