rdhanara wrote
> 1.Do you want me to remove only index ==> 0 ? this case how can i remove
> rest 11 merged regions..?
> 
> My understanding..
>   Sheet has total 12 merged regions which has to be removed.
> Example: 
>   Indexes : 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 (total 12)
> 
> If we remove only 0 how can I remove rest of the positions?

- Start:    Indexes : 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 (total 12)
- call removeMergedRegion(0)
- Result:  Indexes : 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 (total 11)

2nd loop:
- Start:    Indexes : 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 (total 11)
- call removeMergedRegion(0)
- Result:  Indexes : 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 (total 10)

As you already know - this is an index not an ID ... there's no index 11
after you have removed any of the merged entries.



--
Sent from: http://apache-poi.1045710.n5.nabble.com/POI-User-f2280730.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to