Opening WordXML document using OpenXMLSDK

Category: open xml format sdk

Question

Jayakumar HCL on Tue, 07 Feb 2017 09:04:37


Hi,

I cannot open the wordXML document using OpenXMLSDK. The WordprocessingDocument.Open method only accepts .docx file format. I am having mail merge document generated in MS Dynamics CRM which is of .xml extension. How to open this file using OpenXMLSDK.

Thanks.

Jayakumar 

Replies

Chenchen Li on Wed, 08 Feb 2017 02:37:31


Hi,

You could open the file from file stream.

Please visit How to: Open a word processing document from a stream (Open XML SDK):

https://msdn.microsoft.com/en-us/library/office/ff478386.aspx

If it does not work, please let me know. And it would be helpful if you could share us your .xml file.

Regards,

Celeste