PHP Classes

PHP MS Word: Edit Microsoft Word documents using COM objects

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (14)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 53%Total: 15,755 All time: 53 This week: 52Up
Version License PHP version Categories
mswordphp 1.0.0GNU General Publi...5PHP 5, Text processing, Windows


This class can be used to edit Microsoft Word documents using COM objects.

It creates a COM object to communicate with an instance of Microsoft Word running on the same machine. Then it can execute several operations to manipulate Word documents.

Currently it can:

- Create a new document
- Open a document from an existing file
- Insert text in the current cursor position or at a given bookmark position
- Save the document to the current file or to a new file
- Close the document
- Close the Word instance

Picture of Neeraj Thakur
Name: Neeraj Thakur <contact>
Classes: 5 packages by
Country: India India
Age: 45
All time rank: 103 in India India
Week rank: 216 Down20 in India India Down


Class : clsWord This class is really very helpful if we want to interact with Microsoft Application using PHP 5.1.4. It lets user insert text into MS Word in run time. It can also insert data in a specified location in MS Word Document using Bookmark feature. The class is under process of development furthermore we can also insert image in the word document in run time. Please feel free to contact me anytime on the following mentioned email ids. For Installaton .. 1. Unzip files under www or public_html folder. 2. Create one MS Word file name Doc1.doc under c:/ . Note : This location can be changed in index.php file as per your need. 3. Run index.php file from localhost or remote server as per your Apache configuration. About myself: I am a PHP programmer working as Sr. Developer. Please rate this class If you find it useful. Please feel free to contact me for queries related to this class. I would feel gratefull if i can sort out your issues related to PHP. Thanks in advance. Neeraj Thakur Sr.. Developer Emails:

  Files folder image Files  
File Role Description
Plain text file clsWord.php Class Class Source
Accessible without login Plain text file index.php Appl. default file
Accessible without login Plain text file readme.txt Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:53
This week:52Up
User Ratings User Comments (7)
 All time