无法读取使用的x86 dsofile.dll在x64系统上的Office 2007文档道具 [英] Unable to read Office 2007 doc props using x86 dsofile.dll on x64 system

查看:1110
本文介绍了无法读取使用的x86 dsofile.dll在x64系统上的Office 2007文档道具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个32位的.NET应用程序,这使得使用32位版本的DSOFile.dll 2.1读取Office文档共同的属性。这适用于32位版本的Windows,分别为Office 2003和Office 2007文档。我们现正研究我们的应用程序的行为在64位环境中,特别是在64位Windows Server 2008。

We have a 32-bit .NET application which makes use of the 32-bit version of DSOFile.dll 2.1 to read common properties from Office documents. This works on 32-bit versions of Windows, for both Office 2003 and Office 2007 documents. We are now examining our application’s behaviour in a 64-bit environment, and specifically in 64-bit Windows Server 2008.

在此64位环境中,DSOFile.dll可以成功读取Office 2003文档(如DOC)的属性,但在办公室的情况下,2007年的文件(例如,DOCX),仅返回空字符串的所有属性,否则将产生一个错误。

In this 64-bit environment, DSOFile.dll can successfully read properties from Office 2003 documents (eg. DOC), but in the case of Office 2007 documents (eg. DOCX), only empty strings are returned for all properties, or else an error is generated.

下面是我的看法:

环境:全新安装
阅读DOC道具:OK
阅读DOCX道具:空值返回

Environment: clean install
Read DOC props: OK
Read DOCX props: Empty values returned

环境 阅读DOC道具:OK
阅读DOCX道具:空值返回

Environment: Office 2007 Compatibility Pack installed
Read DOC props: OK
Read DOCX props: Empty values returned

环境:Office 2007兼容包SP1
阅读DOC道具:OK
阅读DOCX道具:空值返回

Environment: Office 2007 Compatibility Pack SP1
Read DOC props: OK
Read DOCX props: Empty values returned

环境:安装Office 2007
阅读DOC道具:OK
阅读DOCX道具:错误消息=文档不是OLE文件

Environment: Office 2007 installed
Read DOC props: OK
Read DOCX props: Error message = "document is not an OLE file"

在64位系统我用REGSVR32位于%SystemRoot%\ Syswow64资料的复印件进行登记dsofile.dll。

On the 64-bit system I used the copy of regsvr32 located in %SystemRoot%\Syswow64 to register dsofile.dll.

任何意见将是极大的AP preciated。

Any advice would be greatly appreciated.

推荐答案

您可以编译您的应用程序的x86代替值为anycpu,那么它会正常工作在x64上的Windows。

You can compile your application to x86 instead of AnyCPU, then it will work fine on x64 Windows.

另一种可能的方式是使用Open XML SDK 2.0的Microsoft Office。看它是否支持64位应用程序。

Another possible way is to use Open XML SDK 2.0 for Microsoft Office. See if it supports x64 applications.

<一个href="http://www.microsoft.com/downloads/details.aspx?FamilyId=C6E744E5-36E9-45F5-8D8C-331DF206E0D0&displaylang=en" rel="nofollow">http://www.microsoft.com/downloads/details.aspx?FamilyId=C6E744E5-36E9-45F5-8D8C-331DF206E0D0&displaylang=en

这篇关于无法读取使用的x86 dsofile.dll在x64系统上的Office 2007文档道具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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