A
Anonymous
Guest
ok. I have this piece of code, but
but gives me this error, any clues?
Fatal error: Uncaught exception 'com_exception' with message 'Unable to lookup `Visible': Access is denied. ' in d:\Inetpub\wwwroot\quejas\imprimirQueja.php:13 Stack trace: #0 d:\Inetpub\wwwroot\quejas\imprimirQueja.php(13): unknown() #1 {main} thrown in d:\Inetpub\wwwroot\quejas\imprimirQueja.php on line 13
and if i coment that row out, it will give me the same for the next one (Documents)
Code:
$word = new COM("word.application");
$word->Visible=true;
$word->Documents->Open($fileName);
$word->Selection->TypeText("testing");
$word->Documents->Save();
$word->Documents->Close();
$word->Quit(true,false,false);
but gives me this error, any clues?
Fatal error: Uncaught exception 'com_exception' with message 'Unable to lookup `Visible': Access is denied. ' in d:\Inetpub\wwwroot\quejas\imprimirQueja.php:13 Stack trace: #0 d:\Inetpub\wwwroot\quejas\imprimirQueja.php(13): unknown() #1 {main} thrown in d:\Inetpub\wwwroot\quejas\imprimirQueja.php on line 13
and if i coment that row out, it will give me the same for the next one (Documents)