Aspose words version 16.11.0
com.aspose.words.DocumentBuilder builder = new com.aspose.words.DocumentBuilder(document);
Table table = builder.startTable();
builder.getRowFormat().setLeftIndent(-50);
The above attribute setLeftIndent
is not available in 23.9 version
Please help with the equivalent property to achieve the same result
@manasag You should use Table.setLeftIndent. Please modify your code like this:
com.aspose.words.DocumentBuilder builder = new com.aspose.words.DocumentBuilder(document);
Table table = builder.startTable();
// Build the table
table.setLeftIndent(-50);
Formatting cannot be applied because the table is empty. Add at least one row to the table first.
we are getting the above error while using table.setLeftIndent(-50);
@manasag Please modify your code like this:
com.aspose.words.DocumentBuilder builder = new com.aspose.words.DocumentBuilder(document);
Table table = builder.startTable();
// Build the table add rows, cells etc.
// ..................
//
table.setLeftIndent(-50);