We're sorry Aspose doesn't work properply without JavaScript enabled.

# Free Support Forum - aspose.com

Hi, I am having header footer problem.
When i print attached doc header table is cut in top side. footer table is also very far from the bottom line and there is very less difference between Word Table and footer table.
Kindly suggest me how to control header footer. How to use Margin to properly display the header footer and word contents.
For your ref i have also attached the img displaying the real problem.

plz find attached the image to display the problem mentioned in last post.

Hi
Thanks for your inquiry. I think that you can use HeaderDistance and FooterDistance to solve this problem. See the following code.

Document doc = new Document(@"305_100194_jonathanh\in.doc");
doc.FirstSection.PageSetup.FooterDistance = 10;
doc.Save(@"305_100194_jonathanh\out.doc");


https://reference.aspose.com/words/net/aspose.words/pagesetup/footerdistance/
Best regards.

 *alexey.noskov:
Hi
Thanks for your inquiry. I think that you can use HeaderDistance and FooterDistance to solve this problem. See the following code.

Document doc = new Document(@"305_100194_jonathanh\in.doc");
doc.FirstSection.PageSetup.FooterDistance = 10;
doc.Save(@"305_100194_jonathanh\out.doc");


https://reference.aspose.com/words/net/aspose.words/pagesetup/footerdistance/