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

Free Support Forum - aspose.com

Xlsx and Right-to-Left text - Words appearing in reverse order

Hello,
I am having a problem with Aspose when converting xlsx files to pdf. It seems that when a text block of RTL (Arabic) is in the xlsx document, the words appear in the pdf in reverse order.

Is there some way to prevent this from occuring?

Iimage (2).png (124.6 KB)

Excel file example:
small RTL xlsx sample.zip (6.8 KB)

Notice that in the first paragraph the RTL conversion is OK, but in the second example all the RTL words are reversed.

This is the converter function call we are currently using:
static int RunXlsCellsConversion(String inSource, String inDest)
{
Aspose.Cells.License license = new Aspose.Cells.License();
license.SetLicense("Aspose.Total.lic");
try
{
FileStream docStream = new System.IO.FileStream(inSource, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
Workbook excelFile = new Workbook(docStream);
docStream.Close();
excelFile.Save(inDest);
}
catch (Exception e)
{
Console.Write(e.Message);
return -10;
}
return 1;
}

@dglobal,

Please notice, we are able to reproduce the issue as you mentioned by converting your template file to PDF. We have logged a ticket with an id “CELLSNET-49864” for your issue. We will look into it soon.

Once we have an update on it, we will let you know.

@dglobal

The issue is fixed in v21.11.4.

Aspose.Cells21.11.4 For .Net2_AuthenticodeSigned.Zip (5.6 MB)
Aspose.Cells21.11.4 For .Net4.0.Zip (5.6 MB)
Aspose.Cells21.11.4 For .NetStandard20.Zip (5.6 MB)

@Peyton.Xu
Thank you very much, we’ll try this out.

@dglobal,

Please take your time to evaluate the new fix. Hopefully it will fix your issue.