473,407 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Updating Excel cell...works in debugger only

Hey folks...
I've got an interesting problem. I'm updating and displaying an excel
spreadsheet (using com) from a php file. Works great in the debugger
(PhpEd 4.6), but not otherwise. I assume there must be a difference in
PHP versions in effect here.
Instantiating com, opening workbook, activating sheet, selecting cell,
activating cell all work just fine... but when I try to set the cell
value, I just get "waiting on localhost" and it never returns.

Code snippet:

$cell = $sheets->Cells($home_row[$row_num],2) ; //Select the cell
$cell->activate; //Activate the cell
$cell->value = stripslashes($row['player_name']);

The last statement, setting the cell value is where it never returns
from. No error, just "waiting".

As I said... no issues at all in the debugger.
My setup:
Win2000, Apache 2.0.55, PHP 5.1.4

I'm tempted to drop down to PHP 4 and see if that makes a difference.
Apparently, PHP 5 has had com issues - but I thought they had been
resolved in this release. The prev version, v5.1.2 wouldn't even open
the workbook, this version(5.1.4) does , tho.

Thanks for any help!!

Aug 9 '06 #1
1 1988
JaxDawg wrote:
Hey folks...
I've got an interesting problem. I'm updating and displaying an excel
spreadsheet (using com) from a php file. Works great in the debugger
(PhpEd 4.6), but not otherwise. I assume there must be a difference in
PHP versions in effect here.
Instantiating com, opening workbook, activating sheet, selecting cell,
activating cell all work just fine... but when I try to set the cell
value, I just get "waiting on localhost" and it never returns.

Code snippet:

$cell = $sheets->Cells($home_row[$row_num],2) ; //Select the cell
$cell->activate; //Activate the cell
$cell->value = stripslashes($row['player_name']);

The last statement, setting the cell value is where it never returns
from. No error, just "waiting".

As I said... no issues at all in the debugger.
My setup:
Win2000, Apache 2.0.55, PHP 5.1.4

I'm tempted to drop down to PHP 4 and see if that makes a difference.
Apparently, PHP 5 has had com issues - but I thought they had been
resolved in this release. The prev version, v5.1.2 wouldn't even open
the workbook, this version(5.1.4) does , tho.

Thanks for any help!!
Does the Apache service have access to the desktop? Otherwise I don't
think Excel will start.

Go to Control Panel, Administrative Tools, Services and check the
properties of Apache.

Aug 10 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Allison Bailey | last post by:
Hi Folks, I'm a brand new Python programmer, so please point me in the right direction if this is not the best forum for this question.... I would like to open an existing MS Excel spreadsheet...
6
by: Paul | last post by:
I was wondering if anyone has had an issue where using vba code to read an excel file and import the data into an access table some records are not imported from the excel file. It seems looking at...
11
by: Mr. Smith | last post by:
Hello all, My code can successfully open, write to, format and save several worksheets in a workbook then save it by a given name, close and quit excel. My problem is that if I try and do it...
6
by: Matthew Wieder | last post by:
I have the following requirements: Build a stand-alone C# application that asks the user to click in a cell in an Excel spreadsheet, and then displays the address of that cell in the C#...
2
by: Jody L. Whitlock | last post by:
I've gotten the COM Addin to work, my problem is this. I need to allow the user to select a range of cells (All in the same column) and then select my addin. My addin needs to pick up this range...
4
by: toby989 | last post by:
Hi All Anyone came across this problem before? I have an X<L file created by excel <xml id="model"> <root> <Row>
7
by: Holger Fitschen | last post by:
Hi to all, I want to use the Excel solver in a VB.Net project. The macro Sub Makro1Solver() Application.Run "Solver.xla!Auto_Open" SolverReset Worksheets(1).Select...
5
kadghar
by: kadghar | last post by:
Most of the times VBA is used with variables. Objects (such as worksheets, cells or databases) are only used when we read their properties (value, formula, font...) or we use a method (save,...
7
by: TG | last post by:
hi! I am trying to create a sql server table from an excel sheet. Here is the code I have: 'This procedure the xlsx file and dumps it to a table in SQL Server
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.