How to “format as table” in Excel or apache POI?

后端 未结 1 1889
忘了有多久
忘了有多久 2021-02-06 03:07

In Excel 2010 it\'s possible to \"format as table\" a group of cells - enabling easy sorting and filtering (Home > Format As Table).

Can I do the same in Apache POI? Alt

相关标签:
1条回答
  • 2021-02-06 03:21

    There's a fairly new feature in POI that may deliver what you need. Grab a recent nightly/svn build (or wait for POI 3.8 beta 3 in a week or so), and take a look at XSSFTable. You should now be able to add one to a sheet, specify the range it applies to (the range you want to be made a table), and that hopefully will do you. It's quite new though, so you may need to join the POI dev list and help with the development of the feature if it's not quite there for you!

    0 讨论(0)
提交回复
热议问题