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

          Priority: P2
            Bug ID: 53678
          Assignee: [email protected]
           Summary: Clone Sheet with control form (Checkboxes)
          Severity: major
    Classification: Unclassified
                OS: Windows Vista
          Reporter: [email protected]
          Hardware: PC
            Status: NEW
           Version: 3.8
         Component: XSSF
           Product: POI

Created attachment 29185
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29185&action=edit
Excel file passed in argument

When cloning a sheet with checkboxes in it (control form type), the resulting
file is corrupted.

Step to reproduce : use this with the file attached
    public static void main(String[] args) throws FileNotFoundException,
IOException {
        Workbook wb = new XSSFWorkbook(new FileInputStream(args[0]));
        wb.cloneSheet(0);
        FileOutputStream fileOut = new
FileOutputStream(args[0].replace(".xlsx", "-edited.xlsx"));
        wb.write(fileOut);
        fileOut.flush();
        fileOut.close();
    }

result : the second sheet is corrupted and do not have the checkbox

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to