无法读取使用的x86 dsofile.dll在x64系统上的Office 2007文档道具道具、文档、系统、dll

由网友(有梦就要嚼着炫迈去追)分享简介:我们有一个32位的.NET应用程序,这使得使用32位版本的DSOFile.dll 2.1读取Office文档共同的属性。这适用于32位版本的Windows,分别为Office 2003和Office 2007文档。我们现正研究我们的应用程序的行为在64位环境中,特别是在64位Windows Server 2008。W...

我们有一个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.

http://www.microsoft.com/downloads/details.aspx?FamilyId=C6E744E5-36E9-45F5-8D8C-331DF206E0D0&displaylang=en

阅读全文

相关推荐

最新文章