Free Support Forum - aspose.com

Header Footer problem

Hi, I am having header footer problem.

Please see the attached doc.

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.

Thanks in advance.

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.HeaderDistance = 10;

doc.FirstSection.PageSetup.FooterDistance = 10;

doc.Save(@"305_100194_jonathanh\out.doc");

Also see the following links.
http://www.aspose.com/Products/Aspose.Words/Api/Aspose.Words.PageSetup.FooterDistance.html
http://www.aspose.com/Products/Aspose.Words/Api/Aspose.Words.PageSetup.HeaderDistance.html

I hope that this will help you.

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.HeaderDistance = 10;

doc.FirstSection.PageSetup.FooterDistance = 10;

doc.Save(@"305_100194_jonathanh\out.doc");

Also see the following links.
http://www.aspose.com/Products/Aspose.Words/Api/Aspose.Words.PageSetup.FooterDistance.html
http://www.aspose.com/Products/Aspose.Words/Api/Aspose.Words.PageSetup.HeaderDistance.html

I hope that this will help you.

Best regards.


Hi.

I'm looking for the documentation for FooterDistance and HeaderDistance. The above mentioned links does not seem to be working, and searching for the terms from http://www.aspose.com/docs/display/wordsnet/Home does not yield any results.

Thanks

Hi Hanno,


Thanks for reporting the problem in site search. Also, here are the links to the desired documentation.

http://www.aspose.com/docs/display/wordsnet/HeaderDistance+Property
http://www.aspose.com/docs/display/wordsnet/FooterDistance+Property

Best regards,