开发者

Programmatically convert docx file to doc

开发者 https://www.devze.com 2022-12-17 09:45 出处:网络
What options do I have to convert .docx documents to开发者_运维知识库 .doc document programmatically using C#? I\'m looking to do this as cheaply as possible. Ideally I want to do this directly in cod

What options do I have to convert .docx documents to开发者_运维知识库 .doc document programmatically using C#? I'm looking to do this as cheaply as possible. Ideally I want to do this directly in code via libraries within the .net framework or via a well establish downloadable dll.

The one constraint we have is that we can't install Office onto our servers.


Consider Aspose.Words. It is a high quality product that is fast, reasonably priced and accurate. Converting documents from docx to doc, even with Word automation may result in data loss and may impact fidelity. This may be very important to some users.

I'm not affiliated with their product.


You need to use Microsoft.Office.Interop.Office and Office assembly to convert the Docx file into Doc programmatically. It is part of Visual studio

"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Office14"

I am not sure internally these dlls are take support from Office. But you can try on this.Because I converted Doc to ppt file and it is working fine without Office installation on my Machine.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号