FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=14414&edit=1

ID: 14414
Comment by: charon
Reported By: haar at list dot ru
Summary: Impossible to open file
Status: Open
Type: Bug
Package: Spreadsheet_Excel_Writer
Operating System: Windows
Package Version: 0.9.1
PHP Version: 5.2.0
New Comment:
It says that can't open the file.
You gotta change your code with applying "setTempDir" function:


$libro = new Spreadsheet_Excel_Writer();
//CORRECTION:
$libro->setTempDir('.'); //it have to be write-allowed directory
//WORKING!
$libro->setVersion(8);
$hoja =& $libro->addWorksheet("Sheet1");


Previous Comments:
------------------------------------------------------------------------

[2008-07-28 12:44:05] israeljimenez

Description:
------------
Hello, I created an excel from PHP and when I tried to open the file in
Windows, there are no problem, but when I tried to open in the
blackberry, It says that can't open the file.

Can u help me??

Test script:
---------------
require_once 'Writer.php';
ini_set("memory_limit","100M");
set_time_limit(0);

$libro = new Spreadsheet_Excel_Writer();
$libro->setVersion(8);
$hoja =& $libro->addWorksheet("Sheet1");

if (PEAR::isError($hoja)) {
die($hoja->getMessage());
}
// Escribimos el título
$hoja->write(1, 3, "Reporte comparativo de ventas.");
// Generamos nuestro libro de excel
$libro->send('Test.xls');
$libro->close();

Expected result:
----------------
In PC the file ope, but in Cellphone or Blackberry it doesn't

Actual result:
--------------
The result is: Format unknown !!

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedOct 13, '09 at 11:38p
activeOct 13, '09 at 11:38p
posts1
users1
websitepear.php.net

1 user in discussion

Charon: 1 post

People

Translate

site design / logo © 2022 Grokbase