an error occurs from the COM object itself
Source: Microsoft Word Description: This command is not available because no document is open. no file
I try to open like this:
$new_file3 = 'd:/EDO/tmp/1.doc'; $new_file4 = '../tmp/1.doc'; $error=''; $word = new COM("word.application") or $error.="Невозможно создать COM объект/n"; $word->visible = 0; echo 'file_exist = '.file_exists($new_file4); $word->Documents->Open($new_file4) or $error.='нет файла';
The folder (and the file too) has full rights for all and for the IIS_IUSRS group.
yes, I am using php 5.6 on IIS 7.5 windows web server 2008 R2
UAC disabled in Windows What is most interesting, PHP sees the file in both variants ($ new_file3 and $ new_file4), but the word does not
Tell me what you can do. thank