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

Free Support Forum - aspose.com

Cannot read superscript


I have a file with superscript in the same cell as a normal text.

File: Superscript.zip (19.6 KB)

I am using this code:

Worksheet sheet = book.getWorksheets().get(“Sheet1”);
Cells cells = sheet.getCells();
Cell a1 = cells.get(“A1”);

the output is:


Can you please help?


Please try following code and then let us know your feedback.

Workbook workbook = new Workbook(dataDir + "superscript.xlsx");
Worksheet sheet = workbook.getWorksheets().get("Sheet1");
Cells cells = sheet.getCells();
Cell a1 = cells.get("A1");
FontSetting[] settings = a1.getCharacters();
for (int i = 0; i < settings.length; i++) {
com.aspose.cells.FontSetting setting = settings[i];

Thank you for this


You are welcome.