HELP: permission for com object


i trying open word document via php script stops here         $this->handle = new com("word.application") or die("unable instanciate word"); <--  object fails initialize

the program fails initialize object.  guessing tha tit permission issue com object. question how change permission of win2::ole object.  works on windowxp machine because of little or no security restrictions not on dedicated server windows 2003.


fatal error: uncaught exception 'com_exception' message 'unable lookup `documents': call rejected callee. ' in c:\inetpub\vhostshttpdocs\word\clsword.php:34 stack trace: #0 c:\inetpub\vhostshttpdocs\word\clsword.php(34): clsmsword::open() #1 c:\inetpub\vhosts\gethttpdocs\word\index.php(8): clsmsword->open('c:\1.doc') #2 {main} thrown in c:\inetpub\vhosts\gethttpdocs\word\clsword.php on line 34

hello,

 

this seems known issue relating automation of office on server-side components.

 

i quote following information. please take @ see if applies situation:

 

"developers can use automation in microsoft office build custom solutions use capabilities , features built office product. although such programmatic development can implemented on client system relative ease, number of complications can occur if automation takes place server-side code such microsoft active server pages (asp), asp.net, dcom, or windows nt service. "

 

"all current versions of microsoft office designed, tested, , configured run end-user products on client workstation. assume interactive desktop , user profile. not provide level of reentrancy or security necessary meet needs of server-side components designed run unattended."

 

the detailed information documented in following article:

 

considerations server-side automation of office:

http://support.microsoft.com/kb/257757/

 

you can change default behavior allow automation office applications run under interactive user account.

 

note that, office not designed, , not safe, unattended execution on server. developers use office in manner @ own risk.

 

the detailed steps how listed in following article:

 

how configure office applications run under interactive user account:

http://support.microsoft.com/kb/q288366/

 

hope can of help.

 

best regards,

chang yin


Windows Server  >  Windows Server General Forum



Comments

Popular posts from this blog

Edit Group Policy

Hyper-V VM not reaching OS 'Logon' screen

DNS question...