Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想添加一个条件来检查第一列的数据,如下所示:
0 < data <= 1
那么,我该如何通过 Apache Poi 库来做到这一点?
太感谢了
提示:使用下面的类;
import org.apache.poi.hssf.usermodel.DVConstraint; import org.apache.poi.hssf.usermodel.HSSFDataValidation; import org.apache.poi.ss.usermodel.DataValidation; import org.apache.poi.ss.util.CellRangeAddressList;