Joćo - 2005-06-21 16:37:41
Hello!
Im trying to use this class but php show me this error:
Notice: Undefined variable: size in path_to\Scripts\MS_Excel_StreamHandler\excel.php on line 162
My php script is:
-----------------------------------------------------------------------
require_once "../Scripts/MS_Excel_StreamHandler/excel.php";
$export_file = "xlsfile://./example.xls";
$fp = fopen($export_file, "wb");
if (!is_resource($fp))
{
die("Cannot open $export_file");
}
// typically this will be generated/read from a database table
$assoc = array(
array("Sales Person" => "Sam Jackson", "Q1" => "$3255", "Q2" => "$3167", "Q3" => 3245, "Q4" => 3943),
array("Sales Person" => "Jim Brown", "Q1" => "$2580", "Q2" => "$2677", "Q3" => 3225, "Q4" => 3410),
array("Sales Person" => "John Hancock", "Q1" => "$9367", "Q2" => "$9875", "Q3" => 9544, "Q4" => 10255),
);
fwrite($fp, serialize($assoc));
fclose($fp);
-------------------------------------------------------------------------
Can you tell me the error?
_________________________________________________________________________
Another question:
I have to put in the excel file more lines then a sheet can handler.
How your class deal with it?