請問各位大大們phpexcel可以在同一個單元格內重複差值進去嗎??
ex:
第一次插入值1在E單元格裡
$objPHPExcel->getActiveSheet()->setCellValue('E','1');
第二次插入值2在E單元格裡
$objPHPExcel->getActiveSheet()->setCellValue('E','2');
我希望2能覆蓋掉1,但程式會出錯
錯誤訊息如下
Fatal error: Uncaught exception 'Exception' with message 'Invalid cell coordinate E' in D:\AppServ\www\maxim\system\application\libraries\PHPExcel\Cell.php:513 Stack trace: #0
D:\AppServ\www\maxim\system\application\libraries\PHPExcel\Worksheet.php(1119): PHPExcel_Cell::coordinateFromString('E') #1
D:\AppServ\www\maxim\system\application\libraries\PHPExcel\Worksheet.php(1022): PHPExcel_Worksheet->getCell('E') #2 D:\AppServ\www\maxim\system\application\controllers\fob\fob.php(330):
PHPExcel_Worksheet->setCellValue('E', '1') #3 [internal function]: Fob->export() #4 D:\AppServ\www\maxim\system\codeigniter\CodeIgniter.php(236): call_user_func_array(Array, Array) #5
D:\AppServ\www\maxim\index.php(115): require_once('D:\AppServ\www\...') #6 {main} thrown in D:\AppServ\www\maxim\system\application\libraries\PHPExcel\Cell.php on line 513
--
Aman ia vida 地下飛行
blog: http://luo74128.blogspot.com/2010/07/blog-post.html
我: http://www.wretch.cc/album/luo74128
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 222.126.156.188
※ 編輯: luo74128 來自: 222.126.156.188 (08/18 12:05)
→
08/18 15:24, , 1F
08/18 15:24, 1F
→
08/18 17:27, , 2F
08/18 17:27, 2F
PHP 近期熱門文章
PTT數位生活區 即時熱門文章