Vertical Table Alignment

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 there,

Thanks for your inquiry. Unfortunately, Aspose.Words does not support the requested feature at the moment. However, we have already logged this feature request as WORDSNET-12204 in our issue tracking system. You will be notified via this forum thread once this feature is available.

We apologize for your inconvenience.

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.

@leaderinfo

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");