COM Class

General discussion forum for the Zend Server

COM Class

Postby ehaver282 on Tue Jan 08, 2013 5:48 pm

I need some help. I am trying to get the COM class working and am not having any luck.

I have tried uncommenting the COM. files in php.ini *didnt work
I have added extension=php_com_dotnet.dll and still no luck.
I am using ZEND I5 and PHP version 5.3.14. Is there a config I am missing on is COM not supported at all.

Here is my code also:
Code: Select all
$word = new COM("word.application") or die("Unable to instantiate Word");
echo "Loaded Word, version {$word->Version}\n";

//bring it to front
$word->Visible = 1;

//open an empty document

//do some weird stuff
$word->Selection->TypeText("This is a test...");
$word->Documents[1]->SaveAs("Useless test.doc");

//closing word

//free the object
$word = null;
Posts: 3
Joined: Tue Jan 08, 2013 5:45 pm

Return to Zend Server

Who is online

Users browsing this forum: No registered users and 5 guests