https://issues.apache.org/bugzilla/show_bug.cgi?id=54294

            Bug ID: 54294
           Summary: setSheetOrder on cloned sheet and deleting original
                    sheet clears all sheets in saved file
           Product: POI
           Version: 3.9
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
          Assignee: [email protected]
          Reporter: [email protected]
    Classification: Unclassified

Created attachment 29753
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29753&action=edit
Code to recreate problem and two simple workbooks

I clone a sheet and then try to place the cloned sheet at the index where the
original was. This is repeated a number of times and finally the original sheet
is removeed (I want to allow a user to specify a template where one sheet may
have to be repeated in the resulting file).

The resulting file will have correctly named sheets in correct order but they
will all be empty (even those not involved in the cloning). If, instead of
having a sheet to be duplicated in the template, an empty sheet created with
createSheet("...") is used it seems to work, but not if I move the created
empty sheet with setSheetOrder before cloning it.

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

Reply via email to