473,604 Members | 2,686 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.sar a.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 2001
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.sa ra.nl> wrote in message
news:20******** *************@p istache.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.sar a.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.sa ra.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.sar a.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.boei ng.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
1857
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 to C++ classic style. Please help us as it could do great wonders for our project.
9
3657
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 local webserver. I need to access the same database remotely through TCP/IP. There will be potentially many transactions coming from both the web server and remotely, so the solution needs to keep the data safe in such an environment. However,...
2
2646
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 write process, and is supported for use on a server. (Excel is not supported (1), licensing issues with OWC). The routine works fine for a user at the server, but when a user from a system other than the server runs the page the error...
2
594
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 program only works for the domain I am currently logged into. If I try to query a machine on another domain I get "permission denied". So I have to log out and log back in to the other domain. I recently used a program that added users to a...
2
5777
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 the components. Anyway, the data to be analyzed comes in Excel format, and needs to be converted into SQL Server in some way or another, And I'm not sure which is the best way. I find lots of info on how to pull data from SQL Server and present...
1
2499
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 information into Positouch terminals; I have a Positouch "server" which generates management reports and the like. I've been exporting the Positouch data to Excel then importing into Access (as a short term solution). My question is - does anyone...
1
3156
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
1246
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 instead of adding Public objExcel As New Excel.Application under the class title and doing things like: ComboBox1.Items.Add(objExcel.Range("a" & cell.ToString).Value.ToString) to add values to a comboBox.
4
3526
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 read the data, then I am getting the error message “It is already opened exclusively by another user, or you need permission to view its data.” I am sure the file is not opened by another user. Then may I know what I have to do for getting permission...
0
7997
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7929
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8419
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8406
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6737
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5441
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3954
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1522
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1262
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.