Jump to content

PHP and COM


js_280

Recommended Posts

I've attempted to try my hand at using PHP and COM in Windows, however I cannot seem to get any of the objects to become visible.  For example the following script will not display Excel...

 

$excel = new COM('Excel.Application') or die('Cannot start Excel');
$excel->Visible = true;

 

This script starts an Excel process in task manager, but will not display the program.  I've looked through all of my IIS settings and "Allow Service to Interact with Desktop" is checked.  I'm at a loss, because if is run this statement...

 

echo($excel->Version);

 

It displays 11.0 which is the version of Excel I am running...  Any ideas or suggestions?  Something I've overlooked?

Link to comment
https://forums.phpfreaks.com/topic/68554-php-and-com/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.