WordprocessingDocument.SaveAs(Stream) RRS feed


All replies

  • Hi Dave,

    I think we can use WordprocessingDocument.MainDocumentPart.GetStream() to retrieve the stream. Is this what you are looking for?

    By the way, I think this thread is related to this one,


    I will send you an email to do further discussion.

    Best regards,
    Ji Zhou
    MSDN Subscriber Support in Forum
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    • Marked as answer by DavidThi808 Wednesday, January 20, 2010 9:59 PM
    Wednesday, January 20, 2010 11:18 AM
  • This solution will only save one part of the WordprocessingDocument, the main body of the document. I'm looking for a way to save the entire document and came across this answer, but it will not give access to the other parts of the document, such as headers and footers.
    Tuesday, August 20, 2019 2:23 PM