https://bz.apache.org/bugzilla/show_bug.cgi?id=60642
Bug ID: 60642
Summary: clone sheet with graphic images,rect,textbox
Product: POI
Version: 3.15-FINAL
Hardware: PC
OS: Linux
Status: NEW
Severity: major
Priority: P2
Component: XSSF
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 34673
--> https://bz.apache.org/bugzilla/attachment.cgi?id=34673&action=edit
Sample document
Dear Sir or Madam,
I cloned a sheet , than I copied its relations and pagesetup options from
source sheet to target sheet. But I can't see the relations (etc: graphics
images,rects, texboxes.. ) on the new sheet of saved workbook.
wb.cloneSheet(0);
sheet=wb.getSheetAt(1);
for(POIXMLDocumentPart dp:wb.getSheetAt(0).getRelations())
{
sheet.getRelations().add(dp);
}
sheet.getCTWorksheet().setPageSetup(wb.getSheetAt(0).getCTWorksheet().getPageSetup());
1- Can not copy clone command the relations automatically?
2- If not, how can we clone a sheet completely?
You can look for attached excel document.
--
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]