简体   繁体   中英

Programmatically convert docx file to doc

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM