#28045 [Opn->Bgs]: How to practically bring excel application as a com object to front.
| From: | derick@php.net | Date: | Sun, 18 Apr 2004 09:25:38 +0000 |
| Subject: | #28045 [Opn->Bgs]: How to practically bring excel application as a com object to front. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-58324@lists.php.net to get a copy of this message | ||
ID: 28045
Updated by: derick@php.net
Reported By: suwan_j at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: COM related
Operating System: Windows XP SP.1 with Apache 1.3
PHP Version: 4.3.6
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
This is not a support forum.
Previous Comments:
------------------------------------------------------------------------
[2004-04-18 07:42:04] suwan_j at hotmail dot com
Description:
------------
The statement,"$ExcelCOMObj->Application->Visible = true;", truely
doesn't work. The excel application is not brought to front. I try too
many time and so many version of PHP, that's useless all.
Therefore, I would kindly like a one of you to come to clearly
specify(state) related software versions or tell me how to config their
configurations.
I have worked for this problem for a month, there is no progression on
it.
I have seen several bugs like mine but there is no explicit answer or
solution to fix it.
The related topic : Bug #11195
My current environment :
MS-Windows XP SP.1
MS-Office XP SP.1
Apache 1.3
PHP 4.3.6
Browser : IE 5-6
Reproduce code:
---------------
$CompletedFileName = "E:\\php_rtl\\Example.xls";
$ExcelCOMObj = new COM("Excel.Application");
$ExcelCOMObj->Application->Visible = true;
$ExcelWorkBookObj = $ExcelCOMObj->Application->Workbooks->Open($CompletedFileName);
$ExcelWorkSheetObj = $ExcelWorkBookObj->Worksheets(2);
$ExcelWorkSheetObj->Activate;
unset($ExcelWorkSheetObj);
unset($ExcelWorkBookObj);
unset($ExcelCOMObj);
Expected result:
----------------
The excel application should be brought to front.
Actual result:
--------------
There is no excel application and no error.
The excel process is alive in the Task Manager.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28045&edit=1