Please help me to convert .doc file to .docx using open xml sdk or any other method except word automation.
请帮助我使用open xml sdk或除word自动化之外的任何其他方法将.doc文件转换为.docx。
Thanks in advance.
提前致谢。
2 个解决方案
#1
6
The OpenXML SDK allows you to manipulate only .docx
files, not .doc
. Here's a blog post illustrating how to perform bulk conversions of .doc to .docx files using a bulk conversion utility. I am afraid that if you don't want to use Word Automation, you will have to write your own .doc
parser which might be quite a work.
OpenXML SDK允许您仅操作.docx文件,而不是.doc。这是一篇博客文章,演示了如何使用批量转换实用程序批量转换.doc到.docx文件。我担心如果你不想使用Word Automation,你将不得不编写自己的.doc解析器,这可能是一项非常重要的工作。
#2
0
I haven't used it, but take a look at http://b2xtranslator.sourceforge.net/.
我没有用它,但看看http://b2xtranslator.sourceforge.net/。
In addition, if your scenario supports it, and if your business needs allow for it, it sometimes is effective to install a copy of SharePoint Server 2010, and use Word Automation Services. Some people install a copy of SharePoint Server 2010 just to run Word Automation Services. Word Automation Services has the capability of doing unattended server-side conversion of DOC to DOCX.
此外,如果您的方案支持它,并且您的业务需要允许,则有时安装SharePoint Server 2010的副本并使用Word Automation Services是有效的。有些人只是为了运行Word Automation Services而安装SharePoint Server 2010的副本。 Word Automation Services能够将DOC无人值守的服务器端转换为DOCX。
Depending on your scenario, Word Automation can be very troublesome. In addition, if you are using Word Automation to serve specific functionality to a set of customers, then there may be licensing considerations. Note that Word Automation is a different technology from Word Automation Services. See http://blogs.msdn.com/b/ericwhite/archive/2010/12/07/what-is-the-difference-between-word-automation-and-word-automation-services.aspx for more info.
根据您的方案,Word Automation可能非常麻烦。此外,如果您使用Word Automation为一组客户提供特定功能,则可能存在许可注意事项。请注意,Word Automation是与Word Automation Services不同的技术。有关详细信息,请参阅http://blogs.msdn.com/b/ericwhite/archive/2010/12/07/what-is-the-difference-between-word-automation-and-word-automation-services.aspx。
#1
6
The OpenXML SDK allows you to manipulate only .docx
files, not .doc
. Here's a blog post illustrating how to perform bulk conversions of .doc to .docx files using a bulk conversion utility. I am afraid that if you don't want to use Word Automation, you will have to write your own .doc
parser which might be quite a work.
OpenXML SDK允许您仅操作.docx文件,而不是.doc。这是一篇博客文章,演示了如何使用批量转换实用程序批量转换.doc到.docx文件。我担心如果你不想使用Word Automation,你将不得不编写自己的.doc解析器,这可能是一项非常重要的工作。
#2
0
I haven't used it, but take a look at http://b2xtranslator.sourceforge.net/.
我没有用它,但看看http://b2xtranslator.sourceforge.net/。
In addition, if your scenario supports it, and if your business needs allow for it, it sometimes is effective to install a copy of SharePoint Server 2010, and use Word Automation Services. Some people install a copy of SharePoint Server 2010 just to run Word Automation Services. Word Automation Services has the capability of doing unattended server-side conversion of DOC to DOCX.
此外,如果您的方案支持它,并且您的业务需要允许,则有时安装SharePoint Server 2010的副本并使用Word Automation Services是有效的。有些人只是为了运行Word Automation Services而安装SharePoint Server 2010的副本。 Word Automation Services能够将DOC无人值守的服务器端转换为DOCX。
Depending on your scenario, Word Automation can be very troublesome. In addition, if you are using Word Automation to serve specific functionality to a set of customers, then there may be licensing considerations. Note that Word Automation is a different technology from Word Automation Services. See http://blogs.msdn.com/b/ericwhite/archive/2010/12/07/what-is-the-difference-between-word-automation-and-word-automation-services.aspx for more info.
根据您的方案,Word Automation可能非常麻烦。此外,如果您使用Word Automation为一组客户提供特定功能,则可能存在许可注意事项。请注意,Word Automation是与Word Automation Services不同的技术。有关详细信息,请参阅http://blogs.msdn.com/b/ericwhite/archive/2010/12/07/what-is-the-difference-between-word-automation-and-word-automation-services.aspx。