Free Support Forum - aspose.com

Alignment in the header

I try to use a following construction in my xml file




Segment FontName=‘Times-BoldItalic’ FontSize=‘12’ Color=‘rgb 0 0 0’ Alignment=“left”>
TransClient Transcription Services


Payment Report





I expected the first segment to have the left alignment on the page and the second - the right one, but as a result I got one merged passage aligned against the left side of the page. Is this a bug or I am doing something wrong?

Dear spt,

Thanks for your consideration.

Segment does not have an attribute named Alignment. You should write your xml file like this:




TransClient Transcription Services




Payment Report



In this case I recieve two separate rows, but I need to have these strings in one row.
As I understand the Table could help but unfortunately tables are not supported in the Headers.
Please, advise.

Dear spt,

Thanks for your consideration.

You can set the ‘MarginTop’ attribute of the ‘Text’ paragraph to a negative value like the following code:




TransClient Transcription Services




Payment Report




We will support table in headerfooter in the future.

It works now!
Thanks.