poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53678] New: Clone Sheet with control form (Checkboxes)
Date Wed, 08 Aug 2012 09:45:37 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53678

          Priority: P2
            Bug ID: 53678
          Assignee: dev@poi.apache.org
           Summary: Clone Sheet with control form (Checkboxes)
          Severity: major
    Classification: Unclassified
                OS: Windows Vista
          Reporter: benjamin.ruhlmann@gmail.com
          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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message