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