I'm using Delphi on Windows 7, but the question is language independent.
If I get the current PageStyle, I can get the PageHeight with code that looks like:
Code: Select all
PageHeight := PageStyle.Height - PageStyle.TopMargin - PageStyle.BottomMargin
- PageStyle.HeaderHeight - PageStyle.FooterHeight;
How can I find out the actual HeaderHeight when AutoFit Height is turned on and the header is bigger than the height specified in the Page Format?
Or is there a better way to find out the page height - excluding margins, headers and footers?
(I've asked this on StackOverflow already, but haven't had any responses).