Login   Register  
PHP Classes
elePHPant
Icontem

File: sample1.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Max S. Ferreira  >  MsDoc Generator  >  sample1.php  >  Download  
File: sample1.php
Role: Example script
Content type: text/plain
Description: sample with paragraph addition
Class: MsDoc Generator
Create Microsoft Word document without COM objects
Author: By
Last change:
Date: 2005-10-13 16:37
Size: 465 bytes
 

Contents

Class file image Download
<?php
    
require_once('clsMsDocGenerator.php');
        
    
$titleFormat = array(
                            
'text-align'     => 'center',
                            
'font-weight'     => 'bold',
                            
'font-size'        => '18pt',
                            
'color'            => 'blue');
    
    
$doc = new clsMsDocGenerator();
    
$doc->addParagraph('sample I'$titleFormat);
    
$doc->addParagraph('this is the first paragraph');
    
$doc->addParagraph('this is the paragraph in justified style', array('text-align' => 'justify'));
    
$doc->output();
?>