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