Save failed

Topics: Developer Forum, Project Management Forum
Dec 30, 2014 at 11:16 AM
good morning.
Samebody help me please.
What is wrong with my code ?
Thank You

<?php
error_reporting(E_ALL);
set_time_limit(0);

date_default_timezone_set('Europe/London');
set_include_path(get_include_path() . PATH_SEPARATOR . './Classes/');

$fileType = 'Excel5';
include 'Classes/PHPExcel/IOFactory.php';

$inputFileName = DIR.'/FICH/form.xlsx';
$inputFileType = PHPExcel_IOFactory::identify($inputFileName);
$objReader = PHPExcel_IOFactory::createReader($inputFileType);
$objPHPExcel = $objReader->load($inputFileName);


$objPHPExcel = $objPHPExcel->setActiveSheetIndex(0);
$objPHPExcel->setCellValue('A1','No.'); 
$objPHPExcel->setCellValue('B1','Nome.');
$objPHPExcel->setCellValue('c1','Morada');


$objPHPExcel->setActivesheetIndex(0);

$objWriter = new PHPExcel_Writer_Excel2007($objPHPExcel);
$objWriter->save('c:/ar/fff.xlsx');

?>