views:

31

answers:

2

Last time I checked, Apache POI did not support this feature. If you know any solution that does, either free or commercial, please suggest.

A: 

You can try SmartXLS For Java,it support auto filter datas.

liya
Almost all of the questions you've answered on StackOverflow are promoting SmartXLS or JXCell — which are both relatively obscure products for handling Excel documents. Do you work for the company behind them? If so, I think you should disclose that!
gutch
I am working for SmartXLS.
liya
+1  A: 

Apache POI does support AutoFilter, though it's fairly recent functionality.

Simply call setAutoFilter() on your worksheet in POI with the cell range you want to filter. See documentation:
http://poi.apache.org/apidocs/org/apache/poi/ss/usermodel/Sheet.html#setAutoFilter%28org.apache.poi.ss.util.CellRangeAddress%29

gutch