Hello,
I have the following code to open a specific XLS file and edit it:
Any help would be appreciated.
Yours Sincerely,
Henry
I have the following code to open a specific XLS file and edit it:
require_once 'Classes/PHPExcel/IOFactory.php';
$objPHPExcel = PHPExcel_IOFactory::load("default/ws-data.xls");
$objPHPExcel->setActiveSheetIndex(0);
$objPHPExcel->setCellValue('A2', $session_id);
$objPHPExcel->setCellValue('B2', 'c5fnh09adtc0');
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5');
$objWriter->save('ws-data.xls');
The file is the following one --> https://www.dropbox.com/s/3ozn386q9ihd259/ws-data.xls?dl=0Any help would be appreciated.
Yours Sincerely,
Henry