Free Support Forum - aspose.com

Text orientation problem

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);
}
});
}

@Test
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

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.


Zeljko

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.