Has anyone used [Pear: Spreadsheet\_Excel\_Writer](http://pear.php.net/package/Spreadsheet_Excel_Writer/)?

The [Formatting Tutorial](http://pear.php.net/manual/en/package.fileformats.spreadsheet-excel-writer.intro-format.php) lists a script similar to what I'm working with: (trimmed down)

```
<?php
require_once 'Spreadsheet/Excel/Writer.php';
$workbook = new Spreadsheet_Excel_Writer();

$worksheet =& $workbook->addWorksheet();
$worksheet->write(0, 0, "Quarterly Profits for Dotcom.Com");

$workbook->send('test.xls');
$workbook->close();
?>

```

What I think I understand so far about it...  

`$workbook->send('test.xls');` sets the headers up for Excel file transfer. Now, no errors seem to come up, but the file downloaded is entirely empty (even in a hex editor).

So...  

Where (in what class/method) is the `$workbook` binary supposed to be written? Or, am I misunderstanding it all?

**Note**: I honestly don't know what version of Spreadsheet\_Excel\_Writer is being used; the sources don't include such useful information.  

I can tell you the copyright is ***2002-2003***; so, anywhere from version 0.1 to 0.6.

[**Edit**] Sorry, thought I'd mentioned this somewhere.. This is someone else's script that I've been assigned to fix.