0
<?php

include 'Classes/PHPExcel.php';

include 'Classes/PHPExcel/Writer/Excel2007.php';
include 'Classes/PHPExcel/IOFactory.php';
require_once 'Spreadsheet\Excel/Writer.php' ;
require_once 'Spreadsheet\Excel\Writer/Workbook.php' ;
//E:\Program Files\EasyPHP-DevServer-14.1VC11\data\localweb\generer\Spreadsheet\Excel\Writer
try {
echo date('H:i:s') . " Create new PHPExcel object\n";
echo "redderr " ;
$data = new Spreadsheet_Excel_Reader("GenerationDesNoeuds.xls");
$data->dump($row_numbers=false,$col_letters=false,$sheet=0,$table_class='excel')




$workbook = new Spreadsheet_Excel_Writer('GenerationDesNoeuds.xls');
$worksheet =& $workbook->addWorksheet('My first worksheet');
if (PEAR::isError($worksheet)) {
die($worksheet->getMessage());
}
$workbook->close();



exit ;
}
catch (Exception $e)
{ $error =$e->getMessage(); 
}

?> 

Parse error: syntax error, unexpected '$workbook' (T_VARIABLE) in E:\Program Files\EasyPHP-DevServer-14.1VC11\data\localweb\generer\modifier.php on line 19 
2
Contributors
4
Replies
12
Views
2 Years
Discussion Span
Last Post by imti321
0

THis was actually posted by another person somewhere else .Problem soloved anyways thanks for reply

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.