ExcelWriterXML
[ class tree: ExcelWriterXML ] [ index: ExcelWriterXML ] [ all elements ]

Source for file example.php

Documentation is available at example.php

  1. <?php
  2. /**
  3.  * Example page for how to use the Excel Writer XML
  4.  * @package ExcelWriterXML
  5.  * @subpackage examples
  6.  * @filesource
  7.  */
  8.  
  9. /**
  10.  * Include the required Class file
  11.  */
  12. include('ExcelWriterXML.php');
  13.  
  14. /**
  15.  * @source
  16.  */
  17. $xml new ExcelWriterXML;
  18. $xml->docAuthor('Robert F Greer');
  19.  
  20. $format $xml->addStyle('StyleHeader');
  21. $format->fontBold();
  22. $format->alignRotate(45);
  23. $sheet $xml->addSheet('My Sheet');
  24.  
  25. $sheet->writeString(1,1,'Header','StyleHeader');
  26. $sheet->writeString(2,1,'Test String','StyleHeader');
  27.  
  28. $xml->sendHeaders();
  29. $xml->writeData();
  30. ?>

Documentation generated on Thu, 25 Feb 2010 16:36:53 -0600 by phpDocumentor 1.4.1