我可以使用单声道的Open XML SDK? [英] Can I use the Open XML SDK in Mono?
问题描述
可以在<一个href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c6e744e5-36e9-45f5-8d8c-331df206e0d0&DisplayLang=en">Open XML SDK 在单使用?
推荐答案
今天,我的SDK和Mono 2.6发挥各地。
Today I played around with the SDK and Mono 2.6.
首先,我查了一下纽约现代艺术博物馆认为的dll:
First I checked what MoMA thinks of the dll:
在 DocumentFormat.OpenXml.dll
4种不同的方法需要从单下面的方法
这是不可用的。至少根据现代艺术博物馆。
4 different Methods in DocumentFormat.OpenXml.dll
need the following method from Mono
which is not available. At least according to MoMA.
void XmlReaderSettings.set_MaxCharactersInDocument (Int64)
不过,我很勇敢,并试图做的东西。
But I was brave and tried to do stuff.
坏事:它并没有真正的工作很适合我。我设法创建一个非常简单的docx与内容的Hello World,然后加载并再次读取该文件。但只要我想打开用户创建更复杂的文档的东西开始崩溃,并打破。有一些讨厌的空指针异常虎视眈眈,有时打开的文件,甚至被破坏。也许是因为一个缺少方法。这是一个遗憾。
The bad thing: It didn't really work well for me. I managed to create a very simple docx with the content "Hello World" and then load and read the file again. But as soon as I wanted to open user created and more complex documents stuff started to crash and break. There are some nasty Null Pointer Exceptions lurking around and sometimes the opened file even gets destroyed. Maybe because of the one missing method. It's a pity.
结论:目前的OpenXML的SDK从微软不能使用带单声道
Conclusion: At the moment the OpenXML SDK from Microsoft is not usable with Mono.
这篇关于我可以使用单声道的Open XML SDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!