PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » File Formats » Spreadsheet_Excel_Writer » Bug #2146

setversion(8) used with printArea crashes Excel

Details

Submitted2004-08-17 12:32 UTC
Frompwa dot net at free dot fr
StatusFeedback
PackageSpreadsheet_Excel_Writer
PHP Version4.3.1
OSunix
Roadmaps(Not assigned)

Comments

[2004-08-17 12:32 UTC] pwa dot net at free dot fr

Description:
------------
setversion(8) used with printArea crashes Excel
Use excel spreadsheet 0.8,
OLE 5.0

Reproduce code:
---------------
require_once 'Spreadsheet/Excel/Writer.php';
// Creating a workbook
$workbook = new Spreadsheet_Excel_Writer();
$workbook->SetVersion(8);

// sending HTTP headers
$workbook->send('test.xls');

// Creating a worksheet
$worksheet1 =& $workbook->addWorksheet('Premier feuillet');

// The actual data
$worksheet1->write(3, 2, 'Ce fichier à été entièrement généré avec PHP');

// BUG WITH THIS LINE
$worksheet1->printArea(1,1,5,5);

// Let's send the file
$workbook->close();

Actual result:
--------------
Excel crashes