File: README

package info (click to toggle)
libexcel-writer-xlsx-perl 1.09-1
  • links: PTS
  • area: main
  • in suites: bookworm, sid
  • size: 16,912 kB
  • sloc: perl: 21,564; makefile: 40
file content (87 lines) | stat: -rw-r--r-- 2,181 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
NAME

    Excel::Writer::XLSX - Create a new file in the Excel 2007+ XLSX format.

DESCRIPTION

    The Excel::Writer::XLSX module can be used to create a new Excel file
    in the 2007+ XLSX format.

    The module supports the following Excel features:

        * Multiple worksheets
        * Strings and numbers
        * Unicode text
        * Cell formatting
        * Formulas
        * Images
        * Charts
        * Autofilters
        * Data validation
        * Conditional formatting
        * Macros
        * Tables
        * Shapes
        * Sparklines
        * Hyperlinks
        * Rich string formats
        * Defined names
        * Grouping/Outlines
        * Cell comments
        * Panes
        * Page set-up and printing options

    Excel::Writer::XLSX uses the same interface as Spreadsheet::WriteExcel.


SYNOPSIS

    To write a string, a formatted string, a number and a formula to
    the first worksheet in an Excel XML spreadsheet called perl.xls:

        use Excel::Writer::XLSX;

        # Create a new Excel workbook
        my $workbook = Excel::Writer::XLSX->new('perl.xlsx');

        # 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 notation.
        $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)');

        $workbook->close();


INSTALLATION

    Use the standard Unix style installation.

        Unzip and untar the module as follows:

            tar -zxvf Excel-Writer-XLSX-1.09.tar.gz

        The module can be installed using the standard Perl procedure:

            perl Makefile.PL
            make
            make test
            make install    # As sudo/root



AUTHOR

    John McNamara (jmcnamara@cpan.org)