Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.