Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Neeraj Thakur  >  PHP MS Word  >  index.php  >  Download  
File: index.php
Role: Application script
Content type: text/plain
Description: default file
Class: PHP MS Word
Edit Microsoft Word documents using COM objects
Author: By
Last change:
Date: 2006-11-28 00:01
Size: 348 bytes
 

Contents

Class file image Download
<?php
require_once("clsWord.php");

   
$input "C:\\Doc1.doc";
   
$output "C:\\Doc1.doc";

   
$Word = new clsMSWord;
   
$Word->Open($input);
  
$Word->WriteText("This is a test ");
   
$Word->WriteBookmarkText("test","this is bookmark text");
   
$Word->SaveAs($output);
   
$Word->Quit();
echo 
'The data is inserted successfully !';
?>