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 52268] New: Missing images on cloned sheets.
Date Thu, 01 Dec 2011 10:01:18 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52268

             Bug #: 52268
           Summary: Missing images on cloned sheets.
           Product: POI
           Version: 3.7
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: obidin@phystech.edu
    Classification: Unclassified


Created attachment 28009
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28009
Patch that solves problem with cloning sheet with images

TC
Create "in.xlsx" file with sheet that contents images.
Try to clone that sheet.

Code:
is = new BufferedInputStream(new FileInputStream(WORKING_DIR + "in.xlsx"));
os = new BufferedOutputStream(new FileOutputStream(WORKING_DIR + "out.xlsx"));
Workbook workbook = WorkbookFactory.create(is);

workbook.cloneSheet(0);

workbook.write(os);

Open out.xlsx with Microsoft Office.

ER
There will be images on the cloned sheet.

AR
There are no images on the cloned sheet.


I found the problem that cause this bug and made patch that solve that problem
(see the attachment).

-- 
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