Align Header to the left

Helo ,

I tried to align header to the left by the following method.

sec1.PageInfo.Margin.Left = 0;

HeaderFooter ff = new HeaderFooter();

hf.Margin.Left = 0;

this is working fine with the Apose Pdf version 3.5.00 , when i updated the dll to 3.6.1.0 , the same code is not working , ie the header is not aligning to the left

Thanks in advance

Subeesh

Hi,

I have tested this with Aspose.Pdf v 3.6.1.10 and was not able to reproduce the error.You can get it from https://forum.aspose.com/t/129636 and try it.

Thanks.

Thanks for the reply. The problem was the table of contents . I also had to specfiy the Left Margin of the Table Of Contents to 0 inorder to align the header to the left. Now my problem is that , the Along with the header, the List in the Table of contents is also aligned to the extreme left.

Inorder give some space on the left side , i tried like this

tocSection.ListFormatArray[0].Margin.Left = 50;

But this is not working .Any help is appreciated

Thanks in advance

Subeesh

Hi,

Can you please provide us with the complete source code that you are using along with the output pdf that you got. Once I have this, I will be in a better position to assist you. Also describe in detail what you are trying to achieve.

Thanks.

Thanks for the reply ,

I just used LeftMargin property and that is working now.