Re: RE : [PEAR] Spreadsheet_Excel_Writer-0.9.0

From: Date: Wed, 05 Apr 2006 14:44:32 +0000
Subject: Re: RE : [PEAR] Spreadsheet_Excel_Writer-0.9.0
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23545@lists.php.net to get a copy of this message
On 4/5/06, Tendon Stéphane <stephane.tendon@ezv.admin.ch> wrote: > Hello, > > Look at your Excel-sheet in a Text Editor, and you will anderstand. You have > HTML-Code in it. Delete it and it works. Rather, fix your code so that it doesn't output anything else. > > -----Message d'origine----- > De : Ikoer [mailto:ikoer@dream4all.com] > Envoyé : mercredi, 5. avril 2006 06:46 > À : pear-general@lists.php.net > Objet : [PEAR] Spreadsheet_Excel_Writer-0.9.0 > > > Hello, > > Today I was downloaded and installed OLE-0.5 and > Spreadsheet_Excel_Writer-0.9.0 Package and tried to test with this > "example1.php" > > <?php > require_once 'Spreadsheet/Excel/Writer.php'; > > // Creating a workbook > $workbook = new Spreadsheet_Excel_Writer(); > > // sending HTTP headers > $workbook->send('test.xls'); > > // Creating a worksheet > $worksheet =& $workbook->addWorksheet('My first worksheet'); > > // The actual data > $worksheet->write(0, 0, 'Name'); > $worksheet->write(0, 1, 'Age'); > $worksheet->write(1, 0, 'John Smith'); > $worksheet->write(1, 1, 30); > $worksheet->write(2, 0, 'Johann Schmidt'); > $worksheet->write(2, 1, 31); > $worksheet->write(3, 0, 'Juan Herrera'); > $worksheet->write(3, 1, 32); > > // Let's send the file > $workbook->close(); > ?> > > but, the "test.xls" result did not look as mention as in tutorial. > Please let me know why the result appear like that, is there any problem in > my instalaton pakage? or anything else problem? > > Thank You in advance... > > Regard's > > IKOER > > > -- Justin Patrin

« previous php.pear.general (#23545) next »