How to center table from inserted document

Hi,

I’m currently using Aspose Words for Java. The application I’m on working requires that a table from another document be inserted into the main document. I’ve been able to insert the sub document and the table shows up. I however need to center the table in the page, but I cannot find any formatting options for the Table object to center it, is there any way to do this?

Thanks

Hi
Thanks for your inquiry. You can achieve this by centering each row in the table. You can use RowFormat.Alignment property to achieve this:
https://reference.aspose.com/words/java/com.aspose.words/RowFormat
Please let me know if you need more assistance, I will be glad to help you.
Best regards,

Ha ha ha. Thanks for the quick reply I tried and it worked!

Before I was trying all sorts of attributes and means (even resorted to placing the table inside a textbox, (on that front I had other difficulties)) and this was the formatting object I was looking for all along.