PHP Classes

File: sample6.php

Recommend this page to a friend!
  Classes of Max S. Ferreira  >  MsDoc Generator  >  sample6.php  >  Download  
File: sample6.php
Role: Example script
Content type: text/plain
Description: sample with images
Class: MsDoc Generator
Create Microsoft Word document without COM objects
Author: By
Last change:
Date: 16 years ago
Size: 1,240 bytes


Class file image Download
$doc = new clsMsDocGenerator();
$doc->addParagraph('Sample VI');
$doc->addImage('', 276, 110);
$doc->addImage('', 276, 110);
$doc->addParagraph($doc->bufferImage('',138,55), array('text-align' => 'right'));
$doc->startTable(NULL, 'tableWithoutGrid');
$header = array('header 1', 'header 2');
$aligns = array('center', 'center');
$valigns = array('middle', 'middle');
$doc->addTableRow($header, $aligns, $valigns, array('font-weight' => 'bold'));
$row = 1; $row <= 3; $row++){
$cols = array();
$cols[0] = "column 1; row $row".$doc->bufferImage('',138,55);
$cols[1] = $doc->bufferImage('',138,55) . "column 2; row $row";


For more information send a message to info at phpclasses dot org.