Free Support Forum - aspose.com

Right aligning the last cell in a table

Hi Roman,
The following code leaves the cell left aligned, not right aligned.

This is using Aspose.Word 1.8.3.0

Best regards
Steve

With DocumentBuilder

.InsertCell()

.ParagraphFormat.Alignment = Aspose.Word.ParagraphAlignment.Right

.Write(“Test”)

.EndRow()

.ParagraphFormat.Alignment = Aspose.Word.ParagraphAlignment.Left

.Write (“Following text”)

End With

Use DocumentBuilder.EndTable after EndRow.