source: extensions/GrumPluginClasses/classes/External/odsPhpGenerator/examples/TableSplit.php @ 17735

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: 516 bytes
Line 
1<?php
2
3// Load library
4require_once('../ods.php');
5
6// Create Ods object
7$ods  = new ods();
8
9//Set vertical split
10$table = new odsTable('V Split');
11$table->setVerticalSplit(1);
12$ods->addTable($table);
13
14//Set Horizontal split
15$table = new odsTable('H Split');
16$table->setHorizontalSplit(1);
17$ods->addTable($table);
18
19// Both split
20$table = new odsTable('B Split');
21$table->setVerticalSplit(1);
22$table->setHorizontalSplit(1);
23$ods->addTable($table);
24
25// Download the file
26$ods->downloadOdsFile("TableSplit.ods"); 
27
28?>
Note: See TracBrowser for help on using the repository browser.