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

           Summary: cloneSheet does not copy chart
           Product: POI
           Version: 3.5-dev
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
        AssignedTo: [email protected]
        ReportedBy: [email protected]


When invoking the following code:

    public static void main(String[] args) {

        try {
            System.out.println("opening xslx workbook !");
            XSSFWorkbook wb = new XSSFWorkbook("d:/test.xlsx");
            XSSFSheet sheet = wb.getSheetAt(0);

            wb.cloneSheet(0);



            // Write the output to a file
            FileOutputStream fileOut = new
FileOutputStream("d:/workbook.xlsx");
            wb.write(fileOut);
            fileOut.close();

        } catch (FileNotFoundException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

    }


based on the test.xlsx in attachment, the sheet is cloned but the chart is not
copied to the destinated sheet.

-- 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to