Change table direction from right-to-left using C#

how can i set table direction right to left as we can do in microsoft word table properties??
I want first column to be on the right and so on till the last one in the left.



Could you please ZIP and attach your input and expected output documents here for our reference? We will then provide you more information about your query.

Aspose.Words .NET table direction right to left… (45.8 KB)

here it is, difference between input and output files is the order/direction of columns in the table, instead of left-to-right table, it’s suppose to be right-to-left table


Please use Table.Bidi property as shown below to get the desired output.

Document doc = new Document(MyDir + "input_table_ltr.docx");
Table table = (Table)doc.GetChild(NodeType.Table, 0, true);
table.Bidi = true;
doc.Save(MyDir + "20.2.docx");

ok thanks, i did the bidi thing,
but now it worked only after placing it at the end of the table manipulations before the doc.Save
did the trick and worked. thanks!


Yes, you need to set this property after manipulation of table. Please let us know if you have any more queries.