Unlock All cells on PHPExcel

会有一股神秘感。 提交于 2019-12-12 14:56:35

问题


SOLVED!!

Found myself correct way to solve this problem . Use like PHPExcel::getDefaultStyle()->getProtection()->setLocked(fals‌​e); It's awesome :)


First of all, excel's default cell protection setting is (lock & visible).

I want to use lock some rows and unlock remaining rows.

I found ways to unlock specific cell and I try apply that to unlock all cells by some iterator.

But select all cells job is too heavy to execute iterator.

Is there something to change cell's default protect setting with PHPExcel?

来源:https://stackoverflow.com/questions/48376624/unlock-all-cells-on-phpexcel

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!