dennieku

dennieku

  • NA
  • 33
  • 0

Save Word document to database (using OpenXML)

Dec 12 2011 3:38 AM

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)