Le 01/12/2010 17:24, abad a écrit :
Ho to read a cell comment using the API?

Hi,

        There's no support in the API but it's quite simple :

        Cell<?> cell = sheet.getCellAt("A3");
        XMLVersion version = sheet.getODDocument().getVersion();
        Element annot = cell.getElement().getChild("annotation", 
version.getOFFICE());
        String comment = annot.getChild("p", version.getTEXT()).getText();

HTH,
Sylvain

Reply via email to