#31280 [Opn]: Impossible to instance word XP with COM and php 4.3.10

From: Date: Fri, 24 Dec 2004 08:25:22 +0000
Subject: #31280 [Opn]: Impossible to instance word XP with COM and php 4.3.10
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-71026@lists.php.net to get a copy of this message
 ID:               31280
 User updated by:  kir at post dot kg
 Reported By:      kir at post dot kg
 Status:           Open
 Bug Type:         COM related
 Operating System: Windows XP SP2
 PHP Version:      4.3.10
 New Comment:

Update http://snaps.php.net/win32/php4-win32-STABLE-200412240530.zip
gave same result


Previous Comments:
------------------------------------------------------------------------

[2004-12-24 06:35:26] kir at post dot kg

Description:
------------
Hello. i'm using com object to generate word file on server-side with
word xp. Everything was OK until i change php from 4.3.9 to 4.3.10. My
Apache call an erorr in Windows XP. 
After using last update php
(http://snaps.php.net/win32/php4-win32-STABLE-200412232130.zip), apache
start to call an erorr after $word->Visible = 0; Before update - after
$word = new COM("word.application");

Reproduce code:
---------------
$word = new COM("word.application") or die("Unable to instanciate
Word");
$word->Visible = 0;
$word->Documents->Add(); 
$word->Selection->Typetext("new text"); 
$word->Documents[1]->SaveAs("new.doc", 0);
$word->Quit();
$word->Release();
$word = null;


Expected result:
----------------
Create new word document

Actual result:
--------------
Not created


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=31280&edit=1


Thread (9 messages)

« previous php.bugs (#71026) next »