phpexcel 加锁


 $objPHPExcel->getActiveSheet()->getProtection()->setSheet(true);
 $objPHPExcel->getActiveSheet()->protectCells('A1:'. $w_str . "2", 'PHPExcel');
 $objPHPExcel->getActiveSheet()->getStyle('B3:' . $str.$h)->getProtection()->setLocked(PHPExcel_Style_Protection::PROTECTION_UNPROTECTED);

posted @ 2012-03-05 10:45  小伍BLOG  阅读(507)  评论(0编辑  收藏  举报