Excel is wrong formated when editing and saving

Topics: Developer Forum, User Forum
Feb 12, 2013 at 4:29 PM
Edited Feb 12, 2013 at 5:44 PM
Hello,

I'm trying to edit a existing excel file:
[ http://phpexcel.codeplex.com/Download/AttachmentDownload.ashx?ProjectName=phpexcel&WorkItemId=10749&FileAttachmentId=6804 ] (Orginal File)

But I get this:
[ http://phpexcel.codeplex.com/Download/AttachmentDownload.ashx?ProjectName=phpexcel&WorkItemId=10749&FileAttachmentId=6805 ] (Output File)

When executing this:
<?php
error_reporting(E_ALL);
date_default_timezone_set('Europe/London');
require_once './PHPExcel/IOFactory.php';
require_once './PHPExcel.php';

$name = $_GET['name'];
$ziel = $_GET['ziel'];
$begin = $_GET['begin'];
$ende = $_GET['ende'];
$km = $_GET['km'];

$zelleName = 'C13';
$zelleZiel = 'C14';
$zelleBegin = 'G11';
$zelleEnde = 'G12';
$zelleKm = 'C29';

$excel = PHPExcel_IOFactory::load('vorlage.xlsx'); // Empty Sheet
$excel->setActiveSheetIndex(1);
$excel->getActiveSheet()->setCellValue($zelleName , $name)
->setCellValue($zelleZiel , $ziel)
->setCellValue($zelleBegin , $begin)
->setCellValue($zelleEnde , $ende)
->setCellValue($zelleKm , $km);

$objWriter = PHPExcel_IOFactory::createWriter($excel, 'Excel2007');
$objWriter->save('Ausgabe.xlsx');
?>
how can i solve this?

best regards
Coordinator
Feb 12, 2013 at 4:37 PM
Given links that I can't access to see what your problem is, I've no idea
Feb 12, 2013 at 5:44 PM
links fixed