FFY00 / phpdesktop

Automatically exported from code.google.com/p/phpdesktop
0 stars 0 forks source link

Fatal Error: COM not found #47

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  Trying to run
$word = new COM("word.application") or die("Unable to start the Microsoft 
Office Word program,");

What is the expected output? What do you see instead?
I expect to see the program open the word office document.

What version of the product are you using? On what operating system?
v10 on windows 7

Please provide any additional information below.
Apparently with the version of php included this extension does not exist.  I 
have tried to manually download and add it myself but run into other errors.  I 
am trying to write a program to open a word document template and fill in the 
form based on user entries.

Original issue reported on code.google.com by jasontda...@gmail.com on 22 Sep 2013 at 1:42

GoogleCodeExporter commented 8 years ago
The extension dll file that you add must match the same exact
php version that PHP Desktop comes with. This is explained on
the wiki pages. Otherwise if you're still having problem, ask
questions on the PHP Desktop Forum.

Original comment by czarek.t...@gmail.com on 22 Sep 2013 at 1:57

GoogleCodeExporter commented 8 years ago
I was able to resolve the issue above.  I went to php.net site and downloaded 
the most recent 5.4.x non-thread safe binaries.  I found the php_com_dotnet.dll 
file in the ext folder and copied it to the ext folder of the program.  I then 
opened the php.ini file and added "extension=ext/php_com_dotnet.dll" to the 
file.

On to solve the next problem.

Original comment by jasontda...@gmail.com on 22 Sep 2013 at 2:00

GoogleCodeExporter commented 8 years ago
I think that it might be a good idea to provide a special PHP Desktop
binary that comes with all extensions included. So that there would be
two binaries to download: one minimized, the other with all features 
included. Feel free to create an issue for that.

Original comment by czarek.t...@gmail.com on 22 Sep 2013 at 2:00