Free Support Forum - aspose.com

Center table in section

I am trying to center a table on the page and it seems to work in Portrait mode, but if I am using Lanscape, it doesn’t work. Below is the XML I am loading in to Aspose.Pdf:

<?xml version="1.0" encoding="utf-8" ?>









We are dynamically adding the rows and cells through code. In code, I have tried adding:

Dim section As aPDF.Section = Me.Sections(“section1”)
Dim table As aPDF.Table = CType(section.Paragraphs(“data”), aPDF.Table)
table.Alignment = aPDF.AlignmentType.Center

But nothing seems to work. Are there any suggestions?

Thanks,
Jason

Dear Jason,

Thanks for your consideration.

We will fix this bug in 3 days.

Dear Jason,

Thanks for your consideration.

Please download hot fix here.



I still cannot get it to work. I replaced the original dll, even tried replacing it in the project thinking it was a version issue, but it still left aligns the table. Is there anything else I need to do to get it to work?

Thanks,
Jason

Dear Jason,

Thanks for your consideration.

Would you please send me a simple example code which can reproduce the error?