on ‎2018 Dec 14 7:03 AM
Hi Experts,
I have requirement for Excel Export ,While exporting Excel i need to make the lock for a cell value. Means which is non editable after export the Excel.
please help me how we can achieve this
Request clarification before answering.
Hi,
Which version do you use?
If >=1808 then you can override DefaultExcelCellService and in method insertAttributeValue(final Cell cell, final Object value) you can apply appropriate style to your cell:
CellStyle lockedCellStyle = workbook.createCellStyle();
lockedCellStyle.setLocked(true);
cell.setCellStyle(lockedCellStyle);
Regards,
Lukasz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.