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

ID: 18301
Updated by: till@php.net
Reported By: jandreollo at claritysoft dot com dot br
Summary: Call to undefined method isError()
-Status: Open
+Status: Bogus
Type: Bug
Package: Spreadsheet_Excel_Writer
Operating System: Windows
Package Version: SVN
PHP Version: 5.2.6
Roadmap Versions:
New Comment:

-Status: Open
+Status: Bogus
Sorry, but your problem does not imply a bug in PEAR itself. For a
list of more appropriate places to ask for help using PEAR, please
visit http://pear.php.net/support/ as this bug system is not the
appropriate forum for asking support questions.

Thank you for your interest in PEAR.

This package doesn't include a class ExcelWorksheet, and therefor no
method isError(). The bug is in your own code.


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

[2011-02-23 19:54:57] jairandreollo

Description:
------------
Fatal error: Call to undefined method ExcelWorksheet::isError()
in C:\AppServ\php5\PEAR\Excel\ExcelWorksheet.php on line
3104

Test script:
---------------
$worksheetTotalCorridas->insertBitmap(10, 10,
ROOT_DIR.'modulos'.FILESEPARATOR.'Relatorio'.FILESEPARATOR.'img'.FILESEPARATOR.'taxipro.bmp');

function insertBitmap($row, $col, $bitmap, $x = 0, $y = 0, $scale_x = 1,
$scale_y = 1)
{
$bitmap_array = $this->_processBitmap($bitmap);

if ($this->isError($bitmap_array)) {
$this->writeString($row, $col,
$bitmap_array->getMessage());
return;
}
list($width, $height, $size, $data) = $bitmap_array;
//$this->_processBitmap($bitmap);

// Scale the frame of the image.
$width *= $scale_x;
$height *= $scale_y;

// Calculate the vertices of the image and write the OBJ record
$this->_positionImage($col, $row, $x, $y, $width, $height);

// Write the IMDATA record to store the bitmap data
$record = 0x007f;
$length = 8 + $size;
$cf = 0x09;
$env = 0x01;
$lcb = $size;

$header = pack("vvvvV", $record, $length, $cf, $env,
$lcb);
$this->_append($header.$data);
}

Expected result:
----------------
The image should be inserted into .xls file

Actual result:
--------------
Fatal error: Call to undefined method ExcelWorksheet::isError()
in C:\AppServ\php5\PEAR\Excel\ExcelWorksheet.php on line
3104

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMar 27, '11 at 3:07p
activeMar 27, '11 at 3:07p
posts1
users1
websitepear.php.net

1 user in discussion

Till: 1 post

People

Translate

site design / logo © 2022 Grokbase