Last change
on this file since 17735 was
17735,
checked in by grum, 12 years ago
|
version 3.5.4 - fix minor bug & add new functions to framework
|
-
Property svn:executable set to
*
|
File size:
553 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | // All file is writen in UTF-8 |
---|
4 | |
---|
5 | // Load library |
---|
6 | require_once('../ods.php'); |
---|
7 | |
---|
8 | // Create Ods object |
---|
9 | $ods = new ods(); |
---|
10 | |
---|
11 | // Create table named 'table 1' |
---|
12 | $table = new odsTable('table 1'); |
---|
13 | |
---|
14 | // Create the first row |
---|
15 | $row = new odsTableRow(); |
---|
16 | |
---|
17 | // Create and add 2 cell 'Hello' and 'World' |
---|
18 | $row->addCell( new odsTableCellString("Hello") ); |
---|
19 | $row->addCell( new odsTableCellString("World") ); |
---|
20 | |
---|
21 | // Attach row to table |
---|
22 | $table->addRow($row); |
---|
23 | |
---|
24 | // Attach talble to ods |
---|
25 | $ods->addTable($table); |
---|
26 | |
---|
27 | // Download the file |
---|
28 | $ods->downloadOdsFile("HelloWorld.ods"); |
---|
29 | |
---|
30 | |
---|
31 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.