Different parts of the OpenXML-SDK’s DOM has a Save
method. Do we need to save the parts while modifying the document, or do we only need to save it once when I are done creating/modifying the document?
Is it enough to call methods corresponding to these:
DocumentFormat.OpenXml.Packaging.PresentationPart.Presentation.Save()
DocumentFormat.OpenXml.Packaging.WorkbookPart.Workbook.Save()
And thereby avoid calling methods like these:
DocumentFormat.OpenXml.Spreadsheet.Worksheet.Save()
DocumentFormat.OpenXml.Presentation.Slide.Save()
The reason I ask, is because the samples I’ve seen call Save
on both the sheets and slides in addition to the workbook and presentation.