Hello,
I'm evaluation Spire.Doc for a project I'm working on. I am using FreeSpire.Doc v9.9.7. I would like to be able to create a table whereby each cell can have a different text rotation. Every time I apply TextDirection.RightToLeftRotated to *any* cell in the table, all cells take on that rotation even if I've specified a different rotation for another cell. Below is a sample program that exhibits the problem.
Thanks for any guidance you can give.
Document document = new Document();
Section sec = document.AddSection();
Table table = sec.AddTable();
table.ResetCells(2, 2);
TableCell cell = table.Rows[0].Cells[0];
TableCell cell2 = table.Rows[1].Cells[1];
table.Rows[0].Height = 100;
table.Rows[1].Height = 100;
cell.CellFormat.VerticalAlignment = VerticalAlignment.Middle;
cell2.CellFormat.VerticalAlignment = VerticalAlignment.Top;
cell.CellFormat.TextDirection = TextDirection.RightToLeftRotated;
cell2.CellFormat.TextDirection = TextDirection.RightToLeft;
cell.AddParagraph().AppendText("01");
cell2.AddParagraph().AppendText("*23L01*");
string fileName = @"y:\Documents\Temp\example.docx";
System.IO.File.Delete(fileName);
document.SaveToFile(fileName, FileFormat.Docx);