1
$objPHPExcel = PHPExcel_IOFactory::load("untitled.xls");
foreach ($objPHPExcel->getWorksheetIterator() as $worksheet) //loop through the 3 worksheets of KindleEditionEISBN
{
$sheet_name = $worksheet->getTitle();
if ($worksheet->getTitle = 'Records')
{
$highestColumm = $objPHPExcel->setActiveSheetIndex(0)->getHighestColumn();
$highestRow = $objPHPExcel->setActiveSheetIndex(0)->getHighestRow();
$objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow($highestColumm, $highestRow, $node_10);
$objWriter2007 = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
$objWriter2007->save('php://output');
以上是我的代碼,我運行它,並以Excel文件,如果環路的作品,因爲我得到的輸出,但它並沒有在我的「untitled.xls」文件phpexcel不寫數據使用setCellValueByColumnAndRow
做任何事
感謝馬克!有一堆phpexcel的問題,你總是與信息的人! – user1989379 2013-05-10 07:11:02