fastexcel icon indicating copy to clipboard operation
fastexcel copied to clipboard

Excel error when protect sheet

Open hacherey opened this issue 2 years ago • 0 comments

When I protect a Sheet:

Worksheet ws = wb.newWorksheet("Resumen");
writeSheet(ws);  //Method that write some data in the sheet
ws.protect("Some pasword");

Then, I can´t open the File:

Error: We found a problem with some content in 'informacion_programa-2.xlsx'. Do you want us to try to recover as much as we can? If you trust the source of this workbook, click Yes.

If I comment the ws.protect line, work great

Compared Files:

compare

hacherey avatar Mar 03 '22 23:03 hacherey