poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47352] New: cloneSheet does not copy chart
Date Thu, 11 Jun 2009 09:36:38 GMT
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: dev@poi.apache.org
        ReportedBy: bartdt@gmail.com


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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message