2
Answers

Save Word document to database (using OpenXML)

dennieku

dennieku

12y
5.2k
1

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)