VS项目中的DocumentFormat.OpenXML dll引用

时间:2013-10-18 13:15:28

标签: c# visual-studio-2010 visual-studio dll openxml

我正在尝试将DocumentFormat.OpenXML dll包含到我的项目中。我安装了OpenXML SDK(它是32位,无法找到专门针对64位系统的版本)。我将dll添加到项目的引用中。它仍然说:The type or namespace name 'DocumentFormat' could not be found.这里有什么问题?我尝试重新添加dll并重新启动VS,但没有任何帮助。

1 个答案:

答案 0 :(得分:1)

没有特定于64位系统的版本,您是否添加了DocumentFormat和WindowsBase引用,因为OpenXML sdk依赖于WindowsBase dll才能工作。确保两者都已添加。