Copying Excel Worksheets in POI
Posted
by Patrick Nichols
on Stack Overflow
See other posts from Stack Overflow
or by Patrick Nichols
Published on 2009-05-11T13:53:08Z
Indexed on
2010/05/04
23:48 UTC
Read the original article
Hit count: 492
Does anyone know of a means to copy a worksheet from one workbook to another using POI? The Workbook class has a cloneSheet method, but there doesn't seem to be able to insert a cloned sheet into a new workbook?
If there isn't an API to do this easily, does anyone have the code to copy all of the data (styles, column widths, data, etc) from one sheet to another?
The jxls has methods to copy sheets, but they don't work when copying between workbooks.
© Stack Overflow or respective owner