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.