I’m trying to put a page border in my document, however the problem im having is that my tables are overlapping these borders. I could put some left indent in the table cells however that looks really untidy. Here’s my code:
How can i put some padding between the page border and the left edge of the table? I think i’m looking for the page border margins however i can’t find anything in the api for this. Also is there anything in the api for the “Align paragraph borders and table edges with page border” and “Surround header” options that are found in ‘Page Border & Shading’ options in word.
Thanks for the reply. Does Aspose.Words not have a page border feature? I can get the desired results in MS Word by going Format --> Borders and Shading --> Page Border --> Options. Is it possible to mimick these options programmatically?
Your suggestion for negative padding is what i was looking for, however as in my first post does aspose.words support the “surround header” feature found in the page border options?
Manipulating LeftPadding, in this case setting it to negative value, is not a good way of solving the problem.
LeftPadding controls the distance between left cell border and cell text. Setting it to negative for the first cell in the row indeed causes the table to shift left. But the text in the cell is pressed to the left. As the result you loose the option to control the distance between the cell text and its left border. I’m sorry for that recommendation even if it helps at first glance.
“Surround header” and “surround footer” features are not exposed in the public API. I’ve initiated this as issue #3212. We will notify you when these features are supported.