Quantcast
Channel: PHPExcel Forum Rss Feed
Viewing all articles
Browse latest Browse all 2707

New Post: Open Existing XLS File & Edit it

$
0
0
Hello,

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=0

Any help would be appreciated.

Yours Sincerely,
Henry

Viewing all articles
Browse latest Browse all 2707

Trending Articles