We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Create a table larger than the margins of the document

I am creating a single row table with 2 cells. I'm setting the LeftIndent to -40. This gives me the correct placement on the left. However I need the right border of the table to be at the right margin. (I'm relying on the background color for formatting.) So I need to effectively resize the table to be the width between the margins plus the new offset.


I found that if I put the table in its own section I can accomplish what I need. Section.PageSetup has properties to set margins.

Hi there,

It is nice to hear from you that you have found the solution of your issue. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.

If you still face problem, please manually create your expected Word document using Microsoft Word and attach it here for our reference. We will investigate, how you want your final Word output be generated like. We will then provide you more information on this along with code.