PHP and Microsoft Word

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

PHP and Microsoft Word

Post by JayBird »

I am using the COM functions to manipulate MS Word files bu i can't seem to find a list of functions that you can use. The only ones i know are:

Code: Select all

$word->Documents->Open("E:\\first.doc"); //Open doc

$word->Documents[1]->SaveAs("E:\\test_doc.html",8); //Save as HTML

$word->Quit(); //closing word

$word->Release(); //free the object from the memory

$word->Documents->Add(); //Create new document

$word->Selection->Typetext("This is a test"); //Type text in the document
Where, or how can i find out how to do other stuff? The PHP manual doesn't really help.

Thanks

Mark
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

what methods the ms-office applications expose is not the concern of the php manual ;)
take a look at http://msdn.microsoft.com/library/defau ... cation.asp
and/or http://msdn.microsoft.com/library/en-us ... cation.asp
Post Reply