I’m using Aspose 16.11.00 version.
table.setAbsoluteHorizontalDistance(10) is not working in java For word Document.
I’m using Aspose 16.11.00 version.
table.setAbsoluteHorizontalDistance(10) is not working in java For word Document.
@jaisurya25 Please note that by default horizontal anchor of the table is column, so the position set by AbsoluteHorizontalDistance
property is calculated from the left margin. If you need the position to be relative to to the page bounds, you should use RelativeHorizontalPosition.PAGE
.
table.setHorizontalAnchor(RelativeHorizontalPosition.PAGE);
table.setAbsoluteHorizontalDistance(10);
Please let us know if this helps. If the problem still persist, please attach your input, output and expected output documents along with code that will allow us to preproduce the problem.
My concern is setAbsoluteHorizontalDistance() method is not available in “Table.class”.
And
Right part of the table is not visible as showed in the image. Do you have any solution for that. I’m using Aspose word 16.11.0 version.
@jaisurya25 Unfortunately, 16.11 version does not have public properties to set absolute position of the table. This feature has been introduced in 20.1 version of Aspose.Words.
https://docs.aspose.com/words/java/aspose-words-for-java-20-1-release-notes/#added-setters-for-floating-table-properties
I would suggest you to update to the latest version to use the most recent version of API.
could please share recent version of free trail jar file for testing.
@jaisurya25 Sure, you can download the latest version from here:
https://releases.aspose.com/words/java/
You cam also request a free 30-days temporary license to test Aspose.Words without evaluation version limitations.
Now I installed new version could you please suggest to fix this right part of the table.
@jai25 @jaisurya25 Unfortunately, it is impossible to analyze the problem using screenshot. Could you please attach your source, output and expected output documents here for our reference? We will check the issue and provide you more information.