LinuxParty
odsPhpGenerator es una pequeña y fácil biblioteca para generar hojas de cálculo OpenDocument. Sólo requiere de PHP 5.0, DOM, y el soporte Zip. Te exponemos algunos ejemplos...
La Web del proyecto: https://odsphpgenerator.lapinator.net/
URL de los ejemplos: https://odsphpgenerator.lapinator.net/examples/
table with 1 col and 2 rows

<?php
// Load library
require_once('ods/ods.php');
// Create Ods object
$ods = new ods();
$ods->setPath2OdsFiles('ods');
// Create table named 'table 1'
$table = new odsTable('table 1');
// Create the first row
$row = new odsTableRow();
// Create and add 2 cell 'Hello' and 'World'
$row->addCell( new odsTableCellString("Hello") );
$row->addCell( new odsTableCellString("World") );
// Attach row to table
$table->addRow($row);
// Attach talble to ods
$ods->addTable($table);
// Download the file
$ods->downloadOdsFile("HelloWorld.ods");
?>
La Web del proyecto: https://odsphpgenerator.lapinator.net/
URL de los ejemplos: https://odsphpgenerator.lapinator.net/examples/
table with 1 col and 2 rows

<?php
// Load library
require_once('ods/ods.php');
// Create Ods object
$ods = new ods();
$ods->setPath2OdsFiles('ods');
// Create table named 'table 1'
$table = new odsTable('table 1');
// Create the first row
$row = new odsTableRow();
// Create and add 2 cell 'Hello' and 'World'
$row->addCell( new odsTableCellString("Hello") );
$row->addCell( new odsTableCellString("World") );
// Attach row to table
$table->addRow($row);
// Attach talble to ods
$ods->addTable($table);
// Download the file
$ods->downloadOdsFile("HelloWorld.ods");
?>



