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

interfacing to a remote excel app

pyHello,
Google helped me find a nice package to interface python with MS Excel.
"win32all", or sometimes called by the name "pywin32".

http://starship.python.net/crew/mhammond/

However, this win32all extension seems to be specifically built for the
windows platform only.

What could I use if I want to interface to excel from a python interpreter
running on a remote UNIX machine?

The specific task I want to accomplish is as follows:
I want python on UNIX to be able to make selections in excel (highlight rows).
Also, I want to have changes in the selected (highlighted) items in excel
to be communicated to the python running on UNIX.

What would be the best way to do this?

Thanks,

Bram

PS: A possible approach would be to run two interpreters, one on both
platforms, and have the MS python talk to excel. However, I would like a
solution with low-impact to the MS platform, and want to get away without
having to install python and win32all on the MS machine.

--
------------------------------------------------------------------------------
Bram Stolk, VR Engineer.
SARA Academic Computing Services Amsterdam, PO Box 94613, 1090 GP AMSTERDAM
email: br**@nospam.sara.nl Phone +31-20-5923059 Fax +31-20-6683167

"For the costs of subsidized agriculture in the EU, we can have all 56 million
European cows fly around the world. First Class." - J. Norberg
------------------------------------------------------------------------------
Jul 18 '05 #1
5 1990
Let me start by saying, that I don't have a 'solution-to-go' on this, but
I'll give it a go anyway.

An idea would be to investigate on DCOM (Distributed COM) and accessing that
from Unix. I have no clue on how to do this, so I leave that as an exercise
for yourself.

Otherwise...

If you have no problem having 2 seperate interpeters, It's fairly easy to
come up with a small xml-rpc interface and acces it through that.

just my 2 cents,

ps. de groeten aan Gijs en Bas :)

"Bram Stolk" <br**@nospam.sara.nl> wrote in message
news:20*********************@pistache.sara.nl...
pyHello,
Google helped me find a nice package to interface python with MS Excel.
"win32all", or sometimes called by the name "pywin32".

http://starship.python.net/crew/mhammond/

However, this win32all extension seems to be specifically built for the
windows platform only.

What could I use if I want to interface to excel from a python interpreter
running on a remote UNIX machine?

The specific task I want to accomplish is as follows:
I want python on UNIX to be able to make selections in excel (highlight rows). Also, I want to have changes in the selected (highlighted) items in excel
to be communicated to the python running on UNIX.

What would be the best way to do this?

Thanks,

Bram

PS: A possible approach would be to run two interpreters, one on both
platforms, and have the MS python talk to excel. However, I would like a
solution with low-impact to the MS platform, and want to get away without
having to install python and win32all on the MS machine.

--
-------------------------------------------------------------------------- ---- Bram Stolk, VR Engineer.
SARA Academic Computing Services Amsterdam, PO Box 94613, 1090 GP AMSTERDAM email: br**@nospam.sara.nl Phone +31-20-5923059 Fax +31-20-6683167

"For the costs of subsidized agriculture in the EU, we can have all 56 million European cows fly around the world. First Class." - J. Norberg
--------------------------------------------------------------------------

----
Jul 18 '05 #2
Bram Stolk <br**@nospam.sara.nl> writes:
pyHello,
Google helped me find a nice package to interface python with MS Excel.
"win32all", or sometimes called by the name "pywin32".

http://starship.python.net/crew/mhammond/

However, this win32all extension seems to be specifically built for the
windows platform only.

What could I use if I want to interface to excel from a python interpreter
running on a remote UNIX machine?

The specific task I want to accomplish is as follows:
I want python on UNIX to be able to make selections in excel (highlight rows).
Also, I want to have changes in the selected (highlighted) items in excel
to be communicated to the python running on UNIX.

What would be the best way to do this?

Thanks,

Bram

PS: A possible approach would be to run two interpreters, one on both
platforms, and have the MS python talk to excel. However, I would like a
solution with low-impact to the MS platform, and want to get away without
having to install python and win32all on the MS machine.

--
------------------------------------------------------------------------------
Bram Stolk, VR Engineer.
SARA Academic Computing Services Amsterdam, PO Box 94613, 1090 GP AMSTERDAM
email: br**@nospam.sara.nl Phone +31-20-5923059 Fax +31-20-6683167

"For the costs of subsidized agriculture in the EU, we can have all
56 million European cows fly around the world. First Class." -
J. Norberg
------------------------------------------------------------------------------


You are going to have to do *something* on the MS Excel box.
Otherwise you have a security nightmare (I'm now accessing your Excel
spreadsheet, and I don't even have to tell you about it.)

So it is a matter of how much work you are willing to do on the MS
box. Installing a py2exe bundle is pretty straightforward, so I'm not
sure this is a stumbling block. You could do a proxy with
Python-and-pywin32 talking to Excel via COM, and to the LAN via Pyro
or XMLRPC or SOAP.

Other than that, you could try to setup remote access to Excel.NET via
..NET remoting, and try to reach that from Mono or DotGNU. But .NET
and its clones are not very Python-friendly, so the bindings may not
be available. Even if you got it to work, you would be in a Microsoft
lockin situation, subject to changing protocols as .NET evolved (and
as patent fights perhaps made non-MS implementaitons difficult.)

--
ha************@boeing.com
6-6M21 BCA CompArch Design Engineering
Phone: (425) 342-0007
Jul 18 '05 #3
In article <xq*************@cola2.ca.boeing.com>,
Harry George <ha************@boeing.com> wrote:
Jul 18 '05 #4
Bonjour !

Pour un problème similaire, j'ai fais :

- sur la machine Windows/Excel : un script Python, petit serveur TCP, qui
pilote Excel par COM
- sur la machine distante un autre script Python envoie ses instructions
"Excel", via TCP, et reçoit la réponse en retour.

Résultat : ça marche bien, même à travers Internet.
In english (try) :

Hi !

For a similar problem, I have make:
- on the Windows/Excel machine: a script Python, little server TCP, which
controls Excel by COM
- on the distant machine another Python script sends its instructions
"Excel", via TCP, and receive the response in return.

Result: it goes well, even through Internet.


@-salutations
--
Michel Claveau
mél : http://cerbermail.com/?6J1TthIa8B
site : http://mclaveau.com


Jul 18 '05 #5
One solution that I have used is a COM/CORBA bridge. A fairly decent
one is here:

http://www.octatec.co.uk/CB_sum.htm

But it still requires installation on the windows box. Your goal is
pretty easy actually if you can install python on the windows box.

Now for a completely off the wall suggestion. Have you tried win32all
and DCOM running under wine (linux win32 api)? That might supply enough
of the framework for you to get things running. I'd be very interested
if you can get this to work :)

Brian Kelley
Jul 18 '05 #6

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

Similar topics

4
by: Shaurya Anand | last post by:
I would like to know more about Interfacing hardware devices through .NET. We're students and what we're trying to do is control our robots with printer or serial port interfacing... very similar...
9
by: Greg Gursky | last post by:
Hello: I'm doing some planning on a potential project with which I need some help. The database at the focus of this question is a MS Access database that is currently accessed by DAO from a...
2
by: Jim Lacenski | last post by:
I have a VB class that uses .NET and ADODB to write into an Excel spreadsheet (via Jet) on a server as part of a web application. ADODB is used instead of ADO.NET because it greatly simplifies the...
2
by: Terry Olsen | last post by:
I have administrator access on 2 different domains on the network at my job. I wrote a program to query the registry key on remote PC's and return the results to an excel spreadsheet. However, the...
2
by: Trond Hindenes | last post by:
Hello all, I am working on a application for analyzing data from a SQL Server Database using vb.net. THe application will mostly be web-based, although we migt use some Windows Forms for some of...
1
by: keliie | last post by:
Hello, I've recently completed a database that tracks my food purchases and inventory and I want to add another piece to the database that tracks sales. Our company's waitstaff enters order...
1
by: khizerbasith | last post by:
i need to interface vba in excel to interface it to rs232.need to send the message from the vba throught the rs232 port
1
adamrlee
by: adamrlee | last post by:
I am trying to create a filter program in VB that will be able to heavily interface with a chosen Excel spreadsheet in XLS format. I was wondering if anyone could give me a better way to work with it...
4
ammoos
by: ammoos | last post by:
Hi Friends, I need to read data from an excel sheet. I am keeping this excel sheet in a remote machine. I am using OLEDB connection to read the data from this excel sheet. But when I am trying to...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.