PEAR: Spreadsheet_Excel_Writer - no output

i recently installed the pear package Spreadsheet_Excel_Writer…the package installed successfully (beta version since no stable is available) and also the OLE package was installed too. I took the following sample script from a tutorial site and when I run it, I get an Excel file but it has no values in the table (all blank).

The class is being found properly because if I don’t include the require_once, then all I get is a blank screen.

Any thoughts? Please, this is urgent…



<?php

// Include PEAR::Spreadsheet_Excel_Writer
require_once "Spreadsheet/Excel/Writer.php";
 
// Create an instance
$xls =& new Spreadsheet_Excel_Writer();
 
// Send HTTP headers to tell the browser what's coming
$xls->send("test.xls");
 
// Add a worksheet to the file, returning an object to add data to
$sheet =& $xls->addWorksheet('Binary Count');
 
// Write some numbers
for ( $i=0;$i<11;$i++ ) {
 // Use PHP's decbin() function to convert integer to binary
 $sheet->write($i,0,decbin($i));
}
 
// Finish the spreadsheet, dumping it to the browser
$xls->close();

?>