i am trying to run a macro in side the word-2010. But it is not running.
What i did is ..
1. I allowed COM in php.ini through uncomment com.allow_dcom = true and restarted.
2. I gave IUSER and IIS-IUSER permissions to DCOM Objects in windows 7 professional to "microsoft word 93- 2003 document" in side component services. I did same thing for my computer in side component services.
Here is my code
Code: Select all
$word = new COM("word.application") or die ("Could not initialise MS Word object.");
$word->Visible = 1;
$word->Application->Run('autoFillForm');
$word->Quit();1. web page is freezing but i cant see word opening (but i can see winword.exe in task manager processes)(I did not get any errors)
2. if i end the winword.exe process in task manager i can see word version echo's in php code.
I tried with batch file also but same web page freezing result i am getting. (I am not getting any errors)
Can any one please help me on this one
I am using Joomla 1.5 , PHP version si 5.2.9-2, Apache version is 2.2.11
Thank you,
Sagar.