We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Text orientation problem


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;
public void setUp() throws Exception {
doc = new Document(“minuta1805.docx”);
doc.accept(new DocumentVisitor() {
public int visitRun(Run run) throws Exception {
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?


Hi Zeljko,

Thanks for your inquiry. I have tested the scenario and have managed to reproduce the same issue at my side. For the sake of correction, I have logged this problem in our issue tracking system as WORDSNET-12039. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Ok, thanks.


The issues you have found earlier (filed as WORDSNET-12039) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.