New to Office Open XML SDK. I has some MS Word files which
are in DOC format. I like to use SDK 2.0 to process the file, but seems that DOC
file need to convert to DOCX first before I can use SDK to process the file. Is
this right? If yes, does SDK have function to convert MS word from Doc to DocX?
Or any suggest tool that I can convert DOC file to DOCX programmatically.
Hi Michael, If you are planning to use OpenXml SDK 2.0, the required format is docx. To convert from doc to docx there you can refer this article by Eric White. Regarding the processing of Docx file, what kind of a processing would you like to do?
Thanks for the link. It does not resolve my issue. I'm looking for some ways or third part tools that can convert DOC file to DOCX in memory. I have DevExpress, but it does not support FORMTEXT field.
I'm using SDK for mail merge.
Found tool Aspose that convers prefectly
You might also try WordWriter. It has an API that lets you work directly with DOC files, including doing programmatic mail merges, so you wouldn’t need to go through any prior conversions of file types. Also, it requires less knowledge of the Word file format than the SDK does, and because WordWriter is optimized specifically for Word files it is generally faster and requires less memory than the SDK.
Full disclosure: I’m one of the developers for WordWriter at SoftArtisans. If you have any questions on it I’d be happy to chat with you. You can contact me at firstname.lastname@example.org . Also, I’ve included a link to a code sample for mail merge in the WordWriter documentation if that is helpful for you: http://windemo.softartisans.com/OfficeWriter/latest/WordWriter/Web/CSharp/WordTemplate/MailMerge.aspx