I am using POI XSSF API and I would like to transpose a sheet.
how can I do that?
Thanks.
Transpose, as in swap A2 with B1 and A3 with C1 (so columns become rows)?
If so, there's nothing built in, so you'd need to do a little bit of coding yourself. You'd likely want to grab a pair of cells, save the contents of one (value and style), copy the second to the first, then overwrite the second.
See the quick guide if you're not sure on all the reading/writing parts.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With