| Server IP : 217.160.0.64 / Your IP : 216.73.216.58 Web Server : Apache System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux User : ws67269618 ( 67269618) PHP Version : 8.4.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /kunden/kunden/proc/self/root/usr/share/doc/libspreadsheet-writeexcel-perl/examples/ |
Upload File : |
#!/usr/bin/perl -w
##############################################################################
#
# A simple formatting example using Spreadsheet::WriteExcel.
#
# This program demonstrates the indentation cell format.
#
# reverse('�'), May 2004, John McNamara, jmcnamara@cpan.org
#
use strict;
use Spreadsheet::WriteExcel;
my $workbook = Spreadsheet::WriteExcel->new('indent.xls');
my $worksheet = $workbook->add_worksheet();
my $indent1 = $workbook->add_format(indent => 1);
my $indent2 = $workbook->add_format(indent => 2);
$worksheet->set_column('A:A', 40);
$worksheet->write('A1', "This text is indented 1 level", $indent1);
$worksheet->write('A2', "This text is indented 2 levels", $indent2);
__END__