PHP Classes

File: sample1.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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: 10 years ago
Size: 465 bytes


Class file image Download
$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'));