php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12341 Don't is appears the object
Submitted: 2001-07-24 10:43 UTC Modified: 2001-08-05 07:22 UTC
From: tuca at ctgeo dot br Assigned:
Status: Closed Package: COM related
PHP Version: 4.0.6 OS: NT 4.0 WorkStation
Private report: No CVE-ID: None
 [2001-07-24 10:43 UTC] tuca at ctgeo dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-24 12:17 UTC] andy@php.net
Did the document save correctly?
 [2001-07-24 14:19 UTC] 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-08-05 07:22 UTC] phanto@php.net
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 06 00:01:31 2024 UTC