https://issues.apache.org/bugzilla/show_bug.cgi?id=53144

             Bug #: 53144
           Summary: First comment not cloned after cloneSheet()
           Product: POI
           Version: 3.8
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: is...@infoteria.com
    Classification: Unclassified


Created attachment 28674
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28674
Test output file. res.xls

A cell's comment is not cloned.
The comment is a comment processed by the 1st.(May be)

public static void test() {
 try {
  InputStream is= new FileInputStream("test.xls");    
  Workbook workbook = WorkbookFactory.create(is);
  is.close();

  Sheet sheet = workbook.cloneSheet(workbook.getSheetIndex("TEST1"));
  workbook.setSheetName(workbook.getSheetIndex(sheet), "TEST2");

  FileOutputStream os = new FileOutputStream("res.xls");
  workbook.write(os);
  os.close();
 } catch (Exception e) {
  e.printStackTrace();
 }
}

[res.xls : attachment]
 A sheet(TEST1) has 2 cells(A1,B1) that has comment.
 A cell(A1) on sheet(TEST2) has not comment.
 TEST2 cloned from TEST1.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to