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

Free Support Forum - aspose.com

Set header height

How to set the height of a header in the while creating word document ? It is showing as .5" always in our case. I have set the headerdistance as .3" to achieve this. But, after setting the headerdistance, it has changed to 0.

I have tried the below code.

            doc.FirstSection.PageSetup.HeaderDistance = 0.3;
            doc.FirstSection.PageSetup.FooterDistance = 0.3;

            builder.PageSetup.HeaderDistance = 0.3;
            builder.PageSetup.FooterDistance = 0.3;

Expecting your help. Thanks in advance.

@anishv3

Thanks for your inquiry. Please ZIP and attach your input and problematic output documents here for testing. We will investigate the issue and provide you more information on it.