ravi45722 has asked for the wisdom of the Perl Monks concerning the following question:
At first I tried my programs by using Spreadsheet::ParseExcel; But due to so many limitations I selected Excel::Writer::XLSX. But in this I need to write a long number in the cell. For example 17,89,624
For this I am writing
$worksheet->write_number( $row, $col, sprintf ('%d',$data{'Peak_MO'}) +, $number); $worksheet->write( $row, $col, sprintf ('%d',$data{'Peak_MO'}), $numbe +r);
It's working fine but its writing as "1789624". But I need it comma separated for easy reading. Is there any format for that ???
my $number = $workbook->add_format( font => 'Arial', border => 1, size => 10, align => 'center', valign => 'vcenter', italic => '1', );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need help in Excel::Writer::XLSX
by Corion (Patriarch) on Feb 02, 2016 at 13:13 UTC | |
|
Re: Need help in Excel::Writer::XLSX
by poj (Abbot) on Feb 02, 2016 at 14:37 UTC | |
by Lotus1 (Vicar) on Feb 02, 2016 at 17:23 UTC | |
by poj (Abbot) on Feb 02, 2016 at 17:36 UTC | |
by Lotus1 (Vicar) on Feb 02, 2016 at 20:39 UTC |