2
Reply

Save Word document to database (using OpenXML)

dennieku

dennieku

Dec 12 2011 3:38 AM
5.1k

Hi,

I am using OpenXML to open an existing Word document and modify it. After modifications I want to save it to a database. When I am using a stream in the  WordprocessingDocument.MainDocumentPart.Document.Save method, only the main document part is saved and not the whole docx file.

Is there a method available which saves the whole file to a stream or converts it to a byte array?

Thx,
Danny


Answers (2)