Hi Jordan,
Thank you for your patience.
From the given details, we suspect that your requirement is to change the Header and footer distance of the input word document. To change the header and footer distance in the word document, we suggest you to use the following code example.
|
WordDocument document = new WordDocument(@"Sample.docx"); foreach (WSection section in document.Sections) { section.PageSetup.HeaderDistance = 20f; section.PageSetup.FooterDistance = 20f; } document.Save("Output.docx", FormatType.Docx); document.Close(); |
If you think, we misunderstood any of your requirement, then kindly provide us modified sample of the above along with input template Word document, screenshot/output Word document of the expected result which will helpful to provide you the appropriate solution at the earliest.
Please let us know if you have any other questions.
Regards,
Manikandan Ravichandran