How to avoid gap in header and make left alignment?

iam getting gap in the header after tht line?how to avoid tht gap? see my below code

Aspose.Words.PageSetup oPageSetup = oDocBuilder.PageSetup;

oPageSetup.TopMargin = ConvertUtil.InchToPoint(1.0);

oPageSetup.BottomMargin = ConvertUtil.InchToPoint(1.0);

oPageSetup.LeftMargin = ConvertUtil.InchToPoint(0.6);

oPageSetup.RightMargin = ConvertUtil.InchToPoint(1.0);

oPageSetup.HeaderDistance = ConvertUtil.InchToPoint(1.0);

oPageSetup.FooterDistance = ConvertUtil.InchToPoint(1.0);

Hi,


Thanks for your inquiry.

I suppose, you are getting this problem because of HeaderDistance and TopMargin values being improperly set. Please note that TopMargin is used to set the distance (in points) between the top edge of the page and the top boundary of the body text and HeaderDistance can be used to set the distance (in points) between the header and the top of the page. Please try adjusting those values.

I hope, this will help.

Best Regards,