|
Posted by John McNamara on August 19, 2004, 12:05 am
Please log in for more thread options
======================================================================
ANNOUNCE
Spreadsheet::WriteExcel version 2.04 has been uploaded to CPAN.
http://search.cpan.org/~jmcnamara/Spreadsheet-WriteExcel
======================================================================
NAME
Spreadsheet::WriteExcel - Write formatted text and numbers to a
cross-platform Excel binary file.
======================================================================
CHANGES
! Fixed handling of Euro symbol in num_format() strings.
! Renamed the Excel 5 style merge() format to the more correct
center_across(). Updated examples accordingly.
! Added bug warning about using merge formats outside of
merged ranges.
+ Fixed handling of double quotes in formula strings.
Thanks to a tip from merlyn.
+ The 2.xx versions are now compatible with MS Access. Removed
statements to the contrary.
======================================================================
DESCRIPTION
The Spreadsheet::WriteExcel module can be used create a cross-
platform Excel binary file. Multiple worksheets can be added to a
workbook and formatting can be applied to cells. Text, numbers,
formulas and hyperlinks and images can be written to the cells.
The Excel file produced by this module is compatible with
Excel 97, 2000, 2002 and 2003.
The module will work on the majority of Windows, UNIX and
Macintosh platforms. Generated files are also compatible with the
Linux/UNIX spreadsheet applications Gnumeric and OpenOffice.org.
This module cannot be used to read an Excel file. See
Spreadsheet::ParseExcel or look at the main documentation for some
suggestions.
This module cannot be used to write to an existing Excel file.
======================================================================
SYNOPSIS
To write a string, a formatted string, a number and a formula to
the first worksheet in an Excel workbook called perl.xls:
use Spreadsheet::WriteExcel;
# Create a new Excel workbook
my $workbook = Spreadsheet::WriteExcel->new("perl.xls");
# Add a worksheet
$worksheet = $workbook->add_worksheet();
# Add and define a format
$format = $workbook->add_format(); # Add a format
$format->set_bold();
$format->set_color('red');
$format->set_align('center');
# Write a formatted and unformatted string
$col = $row = 0;
$worksheet->write($row, $col, "Hi Excel!", $format);
$worksheet->write(1, $col, "Hi Excel!");
# Write a number and a formula using A1 notation
$worksheet->write('A3', 1.2345);
$worksheet->write('A4', '=SIN(PI()/4)');
======================================================================
REQUIREMENTS
This module requires Perl 5.005 (or later), Parse::RecDescent and
File::Temp
http://search.cpan.org/search?dist=Parse-RecDescent
http://search.cpan.org/search?dist=File-Temp
======================================================================
AUTHOR
John McNamara (jmcnamara@cpan.org)
--
|
| Similar Threads | Posted | | ANNOUNCE: Spreadsheet::WriteExcel 2.10 | September 24, 2004, 12:52 am |
| Spreadsheet::WriteExcel | December 7, 2005, 3:50 pm |
| Query about Spreadsheet::WriteExcel | September 10, 2004, 3:54 pm |
| Spreadsheet::WriteExcel and Frames | October 11, 2004, 1:08 pm |
| Spreadsheet::WriteExcel new($var) not working | May 20, 2008, 6:10 am |
| Spreadsheet::WriteExcel format width | May 20, 2005, 1:04 pm |
| Announce: Spreadsheet::Read-0.23 | June 21, 2007, 7:14 am |
| WriteExcel internal hyperlink | August 5, 2004, 8:31 am |
| WriteExcel->sheets() fails in getting worksheets | May 5, 2008, 7:38 pm |
| WriteExcel module set_row and set_column to group by both | January 20, 2005, 2:40 pm |
|