example

  1. <?php
  2.  
  3. /**
  4.  * Insert an unordered list into a Word document.
  5.  *
  6.  * @category   Phpdocx
  7.  * @package    examples
  8.  * @subpackage easy
  9.  * @copyright  Copyright (c) Narcea Producciones Multimedia S.L.
  10.  *              (http://www.2mdc.com)
  11.  * @license    http://www.phpdocx.com/wp-content/themes/lightword/pro_license.php
  12.  * @version    3.0
  13.  * @link       http://www.phpdocx.com
  14.  * @since      File available since Release 3.0
  15.  */
  16. require_once '../../classes/CreateDocx.inc';
  17.  
  18. $docx new CreateDocx();
  19.  
  20. $valuesList array(
  21.     'Line 1',
  22.     'Line 2',
  23.     'Line 3',
  24.     'Line 4',
  25.     'Line 5'
  26. );
  27.  
  28. $paramsList array(
  29.     'val' => 1
  30. );
  31.  
  32. $docx->addList($valuesList$paramsList);
  33.  
  34. $docx->createDocx('../docx/example_list');

Documentation generated on Tue, 21 May 2013 17:19:47 +0200 by phpDocumentor 1.4.4