You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Hamza Abdelkebir <ha...@gmail.com> on 2011/06/20 14:40:06 UTC

Copy sheet and set its position in workbook

Hi POI devs/Users,
I'm having some trouble finding a way to clone a sheet and set its position
between two other sheets.
Cloning is done in the same workbook.

Thanks for your help
-- 
Hamza ABDELKEBIR

Re: Copy sheet and set its position in workbook

Posted by Nick Burch <ni...@alfresco.com>.
On Mon, 20 Jun 2011, Hamza Abdelkebir wrote:
> I'm having some trouble finding a way to clone a sheet and set its position
> between two other sheets.

Call setSheetOrder to move the new sheet to where you want it:
http://poi.apache.org/apidocs/org/apache/poi/ss/usermodel/Workbook.html#setSheetOrder(java.lang.String,%20int)

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org