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