facebooktwittermenuarrow-up

GemBox Support Forum

How to set Header height

Hi,
How can I set the height of a Header?
Thanks!

Hi,

Try using the page margins, for instance, check the Page Setup example.
Or try using something like this:

document.Sections[0].PageSetup.PageMargins.Header = 25;
document.Sections[0].PageSetup.PageMargins.Top = 100;

The Header specifies the beginning of the header and Top specifies the beginning of the body on the document’s page.

I hope this helps.

Regards,
Mario

Perfect - thanks Mario!