how to check document has header text or not.By using this given below code it is entering even when doucment has no header text…i mean if document has blank header without text…it is becoming not null…
if (para.GetAncestor(NodeType.HeaderFooter) != null)
i tried the following code but iam getting space for start page?actually if document doesnt contains header i gave header distance as 0.8…it is working for remaining pages not for starting page y iam not getting?