Hi,
I have a problem with the text orientation within the cell. In the attached document, for the orientation in the first cell, using getOrientation() I got the value 0.
Here is the code that reproduces the problem:
List runList = new ArrayList();
Document doc;
@Before
public void setUp() throws Exception {
doc = new Document(“minuta1805.docx”);
doc.accept(new DocumentVisitor() {
@Override
public int visitRun(Run run) throws Exception {
runList.add(run);
return super.visitRun(run);
}
});
}
public void testTextDirection() throws Exception {
for (Run run : runList) {
if (run.getText().contains(“MENU ALMUERZOS”)) {
Paragraph par = run.getParentParagraph();
Cell parentCell = (Cell) par.getParentNode();
Row parentRow = (Row) parentCell.getParentNode();
System.out.println("Text: " + run.getText());
System.out.println("Cell Orientation: " + parentCell.getCellFormat().getOrientation());
}
}
}
I’m using Aspose.Words version 14.3.0.
Can you check this out?
Thanks,
Zeljko
Zeljko