Bug #12341 Updated: Don't is appears the object
| From: | phanto@php.net | Date: | Sun, 05 Aug 2001 11:22:09 +0000 |
| Subject: | Bug #12341 Updated: Don't is appears the object | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-62132@lists.php.net to get a copy of this message | ||
ID: 12341
Updated by: phanto
Reported By: tuca@ctgeo.br
Old Status: Feedback
Status: Closed
Bug Type: COM related
Operating System: NT 4.0 WorkStation
PHP Version: 4.0.6
New Comment:
if the webserver runs as service it doesn't have access to the userspace (e.g. the desktop). if
you want to open a window you have to execute php from the command line.
harald
Previous Comments:
------------------------------------------------------------------------
[2001-07-24 14:19:44] andy@php.net
I thought this is what the commands were supposed to do.
If you wanted to open word wouldn't you do something
like this:
exec("c:\path\to\winword");
------------------------------------------------------------------------
[2001-07-24 12:17:04] andy@php.net
Did the document save correctly?
------------------------------------------------------------------------
[2001-07-24 10:43:11] tuca@ctgeo.br
A take a sample of function COM.
$word = new COM("word.application") or die("Unable to instanciate Word");
print "Loaded Word, version {$word->Version}\n";
$word->Visible = 1; // command that show window
$word->Documents->Add();
$word->Selection->TypeText("This is a test...");
$word->Documents[1]->SaveAs("Useless test.doc");
The commands execute, but the window of word don't appears.
I make a test with Autocad too, but the window don't appears.
When a had a ohter version PHP, don't remember, the window appears
thanks
Luiz Fernando
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12341&edit=1