473,405 Members | 2,404 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,405 software developers and data experts.

Excel Help Please!

I am trying to use php to update a spreadsheet (MS Excel or OpenOffice
Calc) with data from MySQL.

I looked into PEAR::Spreadsheet_Excel_Writer if it will do the job. If I
understand it correctly, it basically creates spreadsheets, but not
opening an existing spreadsheet and then updating and saving it, which
is what I want to do.

Do you know if there is any package out there that can do what I described?

Thanks you.
Aug 10 '07 #1
5 1751
Rik
On Fri, 10 Aug 2007 18:47:05 +0200, Louis <t0*****@hotmail.comwrote:
I am trying to use php to update a spreadsheet (MS Excel or OpenOffice
Calc) with data from MySQL.

I looked into PEAR::Spreadsheet_Excel_Writer if it will do the job. If I
understand it correctly, it basically creates spreadsheets, but not
opening an existing spreadsheet and then updating and saving it, which
is what I want to do.

Do you know if there is any package out there that can do what I
described?
If you can get directly to the database, I'd advise skipping PHP all
together, and make an ODBC connection to MySQL, which Excel itself can
then use as it's datasource.
--
Rik Wasmus
Aug 10 '07 #2
If you can get directly to the database, I'd advise skipping PHP all
together, and make an ODBC connection to MySQL, which Excel itself can
then use as it's datasource.
I missed mentioning that the whole application starts from the web. I
have to trigger this Excel update operation through a button on the web
form.

When user clicks the button, I start a javascript function and that's
where I contemplate options of doing this. One of the options is to use
ajax request to call a php script on the server, and that's the question
I have on this newsgroup.

The other option is to run a perl script instead of php on the server to
do this. I have an example of perl script to update excel. However I
have no idea how to get apache to execute this perl code as a script
instead of a cgi script which displays the perl script code!

Thanks for your time.
Aug 10 '07 #3
NC
On Aug 10, 11:06 am, Louis <t051...@hotmail.comwrote:
>
I missed mentioning that the whole application starts
from the web. I have to trigger this Excel update operation
through a button on the web form.
Er, something doesn't make sense here. The Excel spreadsheet that
needs updating resides on Computer A. The Web application and its
data reside on Computer B. If you want data updated on Computer A,
but trigger this update from Computer B, Computer B needs read-write
access to Computer A (read to get the existing spreadsheet, write to
update it)... Can you provide it?

In actual systems (Bloomberg Excel API comes to mind), the initiative
usually comes from within an Excel spreadsheet. You write an add-on
that implements one or more custom spreadsheet functions; every time
the spreadsheet is opened (or even in real-time, if you prefer), the
add-on connects to your Web service and retrieves the data requested
by cells containing the calls to custom functions...

Cheers,
NC

Aug 10 '07 #4
Louis,

Do you want to save the spreadsheet on the server, or on the users PC?

-- Bill

"Louis" <t0*****@hotmail.comwrote in message
news:dE0vi.101080$xk5.28443@edtnps82...
>I am trying to use php to update a spreadsheet (MS Excel or OpenOffice
Calc) with data from MySQL.

I looked into PEAR::Spreadsheet_Excel_Writer if it will do the job. If I
understand it correctly, it basically creates spreadsheets, but not
opening an existing spreadsheet and then updating and saving it, which is
what I want to do.

Do you know if there is any package out there that can do what I
described?

Thanks you.

Aug 10 '07 #5
AlterEgo wrote:
Louis,

Do you want to save the spreadsheet on the server, or on the users PC?
I am thinking of storing the spreadsheet on the server.
Thank you.
Aug 11 '07 #6

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

Similar topics

3
by: Spacy | last post by:
Am creating a HTML Report in asp.net. To save this report to excel on client-side, i write this code: Response.ContentType = "application/vnd.ms-excel" Response.AddHeader("content-disposition",...
4
by: Jane | last post by:
I got the web application to open up the excel. It works fine on my development box. But when i moved it to the production server, I cannot get the Excel spreadsheet to open. I get...
0
by: acharyaks | last post by:
Hi life saver, I am using excel component for the development. The purpose is to connect to excel through the odbc connection string. Then through the connection extract data into a dataset and...
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#...
4
by: Denis Brkljacic | last post by:
Hello, Please, if enaybody could help a little bit... Namely, I need to build C# ASP.NET Web that opens some Template.xls, write something to it and then closes it (and releases the objects)....
14
by: pmud | last post by:
Hi, I need to use an Excel Sheet in ASP.NET application so that the users can enter (copy, paste ) large number of rows in this Excel Sheet. Also, Whatever the USER ENETRS needs to go to the...
2
by: Mustufa Baig | last post by:
Hi everybody, I have an ASP.NET website where clients can view their monthly billings by selecting different options. One of the option is the way they want to see the report i.e. whether they...
6
by: Coleen | last post by:
Hi All :-) I'm using .Net Framework 1.1, VB and need to be able to download the data from a datagrid into an Excel 2000 spreadsheet for our accounting users. Can anyone please point me to a good...
3
by: Bharathi | last post by:
Hi, I got strucked with reading date value from excel file using C#.NET. For Jan-2000 the value I am getting is 36526.0. For all other dates also I am getting some double value like this. ...
3
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I have a question for you. I have a .csv file which has many lines of data. Each line has many data fields which are delimited by ",". Now I need to extract part of data from this...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.