arajani has asked for the wisdom of the Perl Monks concerning the following question:
my $format = $book->addformat(); # Add a format
$format->set_align('right');
Below code is ok. I need to integrate the above one.
Thanks in advance, Raj.my $book = $Excel->Workbooks->Add; my $sheet = $book->Worksheets(1); $sheet->Cells(1,1)->{Value} = $name; $sheet->Cells(1,2)->{Value} = $address; $sheet->Cells(1,3)->{Value} = $job; $book->SaveAs( {FileName => "file1.csv", FileFormat =>6 , CreateBackup + => 0} ); $book->Close( {SaveChanges => 0} );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Formatting Excel cell using Perl
by Kanji (Parson) on May 06, 2002 at 22:10 UTC | |
|
Re: Formatting Excel cell using Perl
by particle (Vicar) on May 06, 2002 at 22:15 UTC | |
by arajani (Novice) on May 07, 2002 at 16:30 UTC | |
by Fastolfe (Vicar) on May 07, 2002 at 18:37 UTC | |
|
Re: Formatting Excel cell using Perl
by strat (Canon) on May 07, 2002 at 12:28 UTC |