I use the Apache POI to generate an Exccel Templete that my clients could load, add values โโand load back.
I would like to set the cell values โโnot editable so that the headings of the templates cannot be edited.
I tried this code but it does not work,
cell.getCellStyle().setLocked(true)
I also read that locking an excel sheet and then allowing the columns to lock (false) will work, but I'm not sure how many columns will be populated by the client, so I want all the other columns to be edited except the one that I filled dynamically with Apache POI.
I hope my request is clear.
java excel apache-poi
Dipendra pokharel
source share