Excel 95 Cannot Extract Attachments


#1

Cannot extract attachments using:

    String fileName = "/tmp/native-excel95-embedded-word-document.xls";
    Workbook workbook = new Workbook(fileName);

    int count = 0;
    for (Worksheet sheet : (Iterable<Worksheet>)workbook.getWorksheets()) {
        for (OleObject obj : (Iterable<OleObject>) sheet.getOleObjects()) {
            count ++;
        }
    }

    System.out.println("This file has "+ count+ " embedded  files ");

From file:


#2

@russ.nichols,
We were able to observe the issue but we need to look into it more. We have logged the issue in our database for investigation and for a fix. Once, we will have some news for you, we will update you in this topic.

This issue has been logged as

CELLSJAVA-42931 - Attachments/Objects not fetched from Excel95

#3

@russ.nichols,
We have investigated it a bit more and I am afraid that the API currently does not support to load objects of Shapes, Charts, OleObjects…, etc. from Excel95 template files.