<?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
imti321 35 Light Poster
broj1 356 Humble servant Featured Poster
imti321 35 Light Poster
broj1 356 Humble servant Featured Poster
imti321 35 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.