Unable to access table floating positionning

Hello,

We are unable to access table floating positioning ( <w:tblpPr w:leftFromText=“144” w:rightFromText=“144” w:topFromText="144"
w:bottomFromText=“144” w:vertAnchor=“page” w:horzAnchor=“page” w:tblpX="4320"
w:tblpY=“4320”/> )

Is there a way to access theses informations using Aspose Java Word API ?

We need getter AND setter on theses properties

Thanks,

Hi Jean-Pascal,

Thanks for your inquiry. Unfortunately, Aspose.Words does not support the requested feature at the moment. However, I have 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.

@jplim

In some cases, you want to set the position of table at the right top corner of page or at any position on the page in Word document. MS Word allows you to set the position of table according to your requirement. Starting from Aspose.Words 20.1, you can set the table position in Word document. Following code example shows how to set the location of floating tables.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

// Insert a table
Table table = builder.startTable();
builder.insertCell();
builder.write("Table 1, cell 1");
builder.endTable();
table.setPreferredWidth(PreferredWidth.fromPoints(300));

// We can set the table's location to a place on the page, such as the bottom right corner
table.setRelativeVerticalAlignment(VerticalAlignment.BOTTOM);
table.setRelativeHorizontalAlignment(HorizontalAlignment.RIGHT);

table = builder.startTable();
builder.insertCell();
builder.write("Table 2, cell 1");
builder.endTable();
table.setPreferredWidth(PreferredWidth.fromPoints(300));

// We can also set a horizontal and vertical offset from the location in the paragraph where the table was inserted
table.setAbsoluteVerticalDistance(50);
table.setAbsoluteHorizontalDistance(100);

doc.save(MyDir + "Table.ChangeFloatingTableProperties.docx");