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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tuca at ctgeo dot br
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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 Mar 29 07:01:28 2024 UTC