簡體   English   中英

如何在c#中使用open xml sdk將doc轉換為docx

[英]How to convert doc to docx using open xml sdk in c#

請幫助我使用open xml sdk或除word自動化之外的任何其他方法將.doc文件轉換為.docx。

提前致謝。

OpenXML SDK允許您僅操作.docx文件,而不是.doc 這是一篇博客文章,演示了如何使用批量轉換實用程序批量轉換.doc到.docx文件。 我擔心如果你不想使用Word Automation,你將不得不編寫自己的.doc解析器,這可能是一項非常重要的工作。

我沒有用它,但看看http://b2xtranslator.sourceforge.net/

此外,如果您的方案支持它,並且您的業務需要允許,則有時安裝SharePoint Server 2010的副本並使用Word Automation Services是有效的。 有些人只是為了運行Word Automation Services而安裝SharePoint Server 2010的副本。 Word Automation Services能夠將DOC無人值守的服務器端轉換為DOCX。

根據您的方案,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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM