When I save the Document I am working on as DOCX output the margin settings (top, left, bottom and right) are not being saved to the document.
Using the debugger, I check each section of the document and confirm that TopMargin, LeftMargin, BottomMargin and RightMargin are all set to 72. I then call doc.Save(docStream, SaveFormat.Docx) and save the document to a file (using a FileStream). However, when I look at the internals of the docx file I see that the w:sectPR section does not include the margin information. This is what is in the docx file:
<w:sectPr> <w:pgMar w:header="720" w:footer="720" /> <w:cols w:space="720" /> </w:sectPr>
I expected to also see:
w:bottom="1440" w:top="1440" w:right="1440" w:left="1440"
but they were not there?
How can I ensure that the margin information is being written out to my docx file?
Thanks for any and all insights!