jchemie Posted February 5, 2007 Share Posted February 5, 2007 Hello Friends, I was interested in using the word com object in the php file. I tried the standard code... i.e // starting word $word = new COM("Word.Application" ) or die("Unable to instantiate Word"); $word->Documents->Open("test.doc"); $word->Quit(); but it gives the following error Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> Microsoft Word<br/><b>Description:</b> Word met an error at the time of the opening of the file. Try of: * To Verify the authorizations of the file reader. * To Verify that the memory and the space disc are sufficient. * To Open the file with the convertisseur Recuperation text.' in d:\www\001translations.com\website\test2.php:25 Stack track: #0 d:\www\001translations.com\website\test2.php(25): varying->Open(’ d: \www\001trans...’). #1 {hand} thrown in d:\www\001translations.com\website\test2.php one line 25 Please Help Thanks Jyot Vakharia Link to comment https://forums.phpfreaks.com/topic/37196-php-and-com/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.