Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jmcnamara/spreadsheet-writeexcel
Perl module to write Excel binary files
https://github.com/jmcnamara/spreadsheet-writeexcel
Last synced: 16 days ago
JSON representation
Perl module to write Excel binary files
- Host: GitHub
- URL: https://github.com/jmcnamara/spreadsheet-writeexcel
- Owner: jmcnamara
- Created: 2009-11-09T13:56:24.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2021-12-11T20:14:34.000Z (almost 3 years ago)
- Last Synced: 2024-10-14T01:43:54.804Z (about 1 month ago)
- Language: Perl
- Homepage: http://search.cpan.org/~jmcnamara/Spreadsheet-WriteExcel/
- Size: 2.27 MB
- Stars: 35
- Watchers: 5
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
Awesome Lists containing this project
README
======================================================================
NAMESpreadsheet::WriteExcel - Write formatted text and numbers to a
cross-platform Excel binary file.======================================================================
DESCRIPTIONThe Spreadsheet::WriteExcel module can be used to 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, hyperlinks and images can be written to the cells.TThe Excel file produced by this module is compatible with 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
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 uses to write to an existing
Excel file.======================================================================
SYNOPSISTo 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)');======================================================================
REQUIREMENTSThis 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/======================================================================
INSTALLATIONUse the standard Unix style installation.
Unzip and untar the module as follows:
tar -zxvf Spreadsheet-WriteExcel-2.xx.tar.gz
The module can be installed using the standard Perl procedure:
perl Makefile.PL
make
make test
make install # As sudo/root======================================================================
AUTHORJohn McNamara ([email protected])