in reply to Generating an Excel Report
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, row and column notatio +n. $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)');
-Mark
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Generating an Excel Report
by dragonchild (Archbishop) on Mar 02, 2004 at 12:39 UTC | |
by kasmot (Novice) on May 04, 2004 at 05:06 UTC | |
by dragonchild (Archbishop) on May 04, 2004 at 12:14 UTC |