Hi,
I need to position a table at the bottom of the margin of the document, as in the attachment.
An idea ?
Best regards,
LeaderInfo
Hi,
The issues you have found earlier (filed as WORDSNET-12204) have been fixed in this Aspose.Words for .NET 20.1 update and this Aspose.Words for Java 20.1 update.
Starting from Aspose.Words 20.1, you can set the table’s vertical alignment at the bottom of page. You can also set the table’s position at any location in the Word document using Aspose.Words with table properties RelativeHorizontalAlignment, AbsoluteHorizontalDistance, RelativeVerticalAlignment, and AbsoluteVerticalDistance.
Following code example shows how to set the table’s location at the bottom right of page in Word document.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Table table = builder.StartTable();
builder.InsertCell();
builder.Write("Table 2, cell 1");
builder.EndTable();
table.PreferredWidth = PreferredWidth.FromPoints(300);
// We can set the table's location to a place on the page, such as the bottom right corner
table.RelativeVerticalAlignment = VerticalAlignment.Bottom;
table.RelativeHorizontalAlignment = HorizontalAlignment.Right;
doc.Save(MyDir + "Table.ChangeFloatingTableProperties.docx");