Horizontal alignment issue when loading a file

Hi,


I’m trying to migrate from Apache POI to Aspose.Cells Java 8.5.1.
When I tried to open a file (created with Apache POI) using Aspose.Cells, horizontal alignment of cells was wrong.
The xlsx file is working just fine with Excel.

I’m attaching the corresponding file:
The cell E2 should be center-aligned but Aspose.Cells is reading it as left-aligned.
Is the file wrong or is there a bug in Aspose.Cells?

Regards,

Sebastien.


Hi Sebastien,

Thanks for your posting and using Aspose.Cells.

We were able to observe this issue after converting your source excel file into pdf using the latest version: Aspose.Cells
for Java v8.5.1.6
with the following sample code. The cell E2 should be center-aligned but Aspose.Cells is reading it as left-aligned.

We have logged this issue in our database for investigation. We will look into it and fix this issue. Once the issue is resolved or we have some other update for you, we will let you know asap.

This issue has been logged as

  • CELLSJAVA-41440 - Horizontal alignment issue when loading a file

I have attached the output pdf generated with the following code and screenshot highlighting this issue for a reference.

Java

String filePath = “F:\Shak-Data-RW\Downloads\SCC.xlsx”;


Workbook workbook = new Workbook(filePath);

workbook.save(filePath + “.out.pdf”);

Thank you for the quick reply !

Hi,

Please try our latest version/fix: Aspose.Cells for Java 8.6.0.4

Your issue should be fixed in it.

Let us know your feedback.

Thank you.

The issues you have found earlier (filed as CELLSJAVA-41440) have been fixed in

Aspose.Cells for Java (Download | Maven).


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.