What is PyOleMissing object? (win32com)

2017-01-07 Thread CM
Trying to manipulate z-order for MSOffice with win32com and wasn't sure what argument was needed. Using help on that ZOrder method gives: >>> Help on method ZOrder in module win32com.client.dynamic: ZOrder(self, ZOrderCmd=) method of win32com.client.CDispatch instance So, what

Re: Event handling for COM object with win32com (pywin32)

2014-06-22 Thread Kevin Walzer
On 6/22/14, 5:15 AM, peter.balazo...@emspin.com wrote: Do I miss something in code or incorrectly handling the events or COM Object? There is a pywin32 mailing list that may be able to offer more help here. -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://ww

Re: Event handling for COM object with win32com (pywin32)

2014-06-22 Thread Chris Angelico
On Sun, Jun 22, 2014 at 9:55 PM, wrote: > You right, this is a typo here - I am sorry for this but event handler does > not work... fmstr application is freezing and event handler does not work. I > need to restart python to unfreeze my application. > I can't help further, then. I'm not experi

Re: Event handling for COM object with win32com (pywin32)

2014-06-22 Thread peter . balazovic
On Sunday, June 22, 2014 12:09:51 PM UTC+2, Chris Angelico wrote: > On Sun, Jun 22, 2014 at 7:15 PM, wrote: > > > This code works on python console but there is no event fired. > > > > > class fmstrEvents(object): > > > ... def OnRecroderDone(self): > > > ... print "

Re: Event handling for COM object with win32com (pywin32)

2014-06-22 Thread Chris Angelico
On Sun, Jun 22, 2014 at 7:15 PM, wrote: > This code works on python console but there is no event fired. > class fmstrEvents(object): > ... def OnRecroderDone(self): > ... print "Hello OnRecroderDone" Is that supposed to say "OnRecroderDone" or "OnRecorderDone"? I can't

Event handling for COM object with win32com (pywin32)

2014-06-22 Thread peter . balazovic
Dears, I have a problem with firing Events and event handling on COM object. This code works on python console but there is no event fired. >>> class fmstrEvents(object): ... def OnRecroderDone(self): ... print "Hello OnRecroderDone" >>> import win32com.client >>> fm = win32

win32com how to catch events

2013-02-27 Thread igorjan2332
Hello, I have a VBS sample code that I need to rewrite into python. It calls a com object which then generates events. My problem is that I don't know how to catch this events. VBS sample looks like this: Set oCOV = WScript.CreateObject( "RainbowObjectHandlerSrv.RainbowCOV", "oCOV_") ' like Wit

Re: win32com pythonwin extensions part of stdlib?

2010-12-07 Thread harijay
Thanks Tim for your reply. I did get that build . Also thanks for the examples. Looking forward to using the module Hari On Dec 7, 3:22 pm, Tim Golden wrote: > You want something from here: > >    http://sourceforge.net/projects/pywin32/files/pywin32/Build%20214/ > > Which one you need will depe

Re: win32com pythonwin extensions part of stdlib?

2010-12-07 Thread harijay
gt; > > > > > > On Dec 7, 11:02 am, harijay wrote: > > > > Hi I am using Python 2.6.5 on Windows. > > > > I wanted to start using the win32com extensions which I understand are > > > "essentially part of the stdlib" ( quoted > > &

Re: win32com pythonwin extensions part of stdlib?

2010-12-07 Thread Tim Golden
You want something from here: http://sourceforge.net/projects/pywin32/files/pywin32/Build%20214/ Which one you need will depend on your architecture and the version of Python you're running TJG -- http://mail.python.org/mailman/listinfo/python-list

Re: win32com pythonwin extensions part of stdlib?

2010-12-07 Thread harijay
; > > > > > > > Hi I am using Python 2.6.5 on Windows. > > > I wanted to start using the win32com extensions which I understand are > > "essentially part of the stdlib" ( quoted > > inhttp://tgolden.sc.sabren.com/python/win32_how_do_i.htm

Re: win32com pythonwin extensions part of stdlib?

2010-12-07 Thread Ian
On Dec 7, 11:02 am, harijay wrote: > Hi I am using Python 2.6.5 on Windows. > > I wanted to start using the win32com extensions which I understand are > "essentially part of the stdlib" ( quoted > inhttp://tgolden.sc.sabren.com/python/win32_how_do_i.html) > Since I

Re: win32com pythonwin extensions part of stdlib?

2010-12-07 Thread Godson Gera
, 2010 at 11:32 PM, harijay wrote: > Hi I am using Python 2.6.5 on Windows. > > I wanted to start using the win32com extensions which I understand are > "essentially part of the stdlib" ( quoted in > http://tgolden.sc.sabren.com/python/win32_how_do_i.html) > Since I

win32com pythonwin extensions part of stdlib?

2010-12-07 Thread harijay
Hi I am using Python 2.6.5 on Windows. I wanted to start using the win32com extensions which I understand are "essentially part of the stdlib" ( quoted in http://tgolden.sc.sabren.com/python/win32_how_do_i.html) Since I didnt have the extensions as standard I went to sourceforge

Re: win32com sql update problem

2010-05-12 Thread Tim Roberts
Mark Carter wrote: > >Consider the following snippet of code: > >import win32com.client > >DSN = 'PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=M:\\Finance\\camel\ >\camel.mdb;' >conn.Open(DSN) >cursor = conn.Execute("UPDATE tblInvoice SET InvComments='Python' >WHERE InvBillingPeriod = 'April 2010'

win32com sql update problem

2010-05-11 Thread Mark Carter
d) File "C:/Users/mcarter/tacc/pypms/post.py", line 64, in AdjustPms cursor = conn.Execute("UPDATE tblInvoice SET InvComments='Python' WHERE InvBillingPeriod = 'April 2010' AND InvJobCode = '2169'") File "", line 3, in Execute

Re: win32com

2010-05-10 Thread mohamed issolah
hey, I need help . 2010/5/9 mohamed issolah > hey, > I wich to have an example please > > need help > > > > 2010/5/9 Chris Rebert > > On Sun, May 9, 2010 at 1:15 AM, mohamed issolah >> wrote: >> > hey, >> > >> > there is an alter

Re: win32com

2010-05-09 Thread mohamed issolah
hey, I wich to have an example please need help 2010/5/9 Chris Rebert > On Sun, May 9, 2010 at 1:15 AM, mohamed issolah > wrote: > > hey, > > > > there is an alternative of win32com in linux? > > > > what i want to say : can communicate with appli

Re: win32com

2010-05-09 Thread Chris Rebert
On Sun, May 9, 2010 at 1:15 AM, mohamed issolah wrote: > hey, > > there is an alternative of win32com in linux? > > what i want to say : can communicate with application (ex: evolution or > another) throught python like in windows with win32com The closest equivalent would

win32com

2010-05-09 Thread mohamed issolah
hey, there is an alternative of win32com in linux? what i want to say : can communicate with application (ex: evolution or another) throught python like in windows with win32com thanks, sorry for my english need help -- issolah mohamed -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows drag & drop with win32com and IDropTarget

2010-01-15 Thread Greg K
> It looks as though you're returning an OK *and* the effect > which isn't how the thing is implemented via the pywin32 > wrappers. Thanks for the reply, however even after I change the return value to just the effect code, I still have the same problem. There must still be something else I'm doin

Re: Windows drag & drop with win32com and IDropTarget

2010-01-15 Thread Tim Golden
On 15/01/2010 07:20, Greg K wrote: I'm trying to create a program that will process files dragged into its window, however I can't seem to get the cursor to change correctly when something is dragged over the window. I've created an object that implements the IDropTarget interface, but it seems t

Windows drag & drop with win32com and IDropTarget

2010-01-14 Thread Greg K
I'm trying to create a program that will process files dragged into its window, however I can't seem to get the cursor to change correctly when something is dragged over the window. I've created an object that implements the IDropTarget interface, but it seems the value returned by its DragEnter me

win32com calling IE: OLE error 0x800704a6

2009-11-26 Thread KvS
originates from the win32com.client.Dispatch() method and has description 'OLE error 0x800704a6'. (Occasionally means that sometimes it happens, sometimes it doesn't. I haven't been able to figure out what the trigger exactly is.) The most recent version of win32com is insta

Re: python win32com problem

2009-11-15 Thread elca
incompleted script source in here => >> >> http://elca.pastebin.com/m6f911584 >> >> if anyone can help me really appreciate >> >> thanks in advance >> >> Paul >> >> -- >> View this message in >> context:http://old.nabble.com/python-w

Re: python win32com problem

2009-11-15 Thread Jon Clements
m6f911584 > > if anyone can help me really appreciate > > thanks in advance > > Paul > > -- > View this message in > context:http://old.nabble.com/python-win32com-problem-tp26358976p26358976.html > Sent from the Python - python-list mailing list archive at Nabble.com.

python win32com problem

2009-11-15 Thread elca
nce Paul -- View this message in context: http://old.nabble.com/python-win32com-problem-tp26358976p26358976.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo/python-list

win32com IE interface PAMIE javascript click

2009-11-11 Thread elca
not changed. for example i want to click javascript every inside 'li' element . how can i make it work with Pamie or win32com IE interface? thanks in advance http://www.bloter.net/wp-content/bloter_html/2009/11/11/19083.html 데스크톱 가상화 놓고 한판 대결…시

AW: Python2.6 + win32com crashes with unicode bug

2009-11-02 Thread Stefan Schukat
trag von GerritM Gesendet: Freitag, 30. Oktober 2009 18:00 An: Terry Reedy Cc: python-list@python.org Betreff: Re: Python2.6 + win32com crashes with unicode bug Terry Reedy schreef: > GerritM wrote: >> I have automated image generation with Python, win32com and Visio5.0. >> T

Re: Python2.6 + win32com crashes with unicode bug

2009-10-30 Thread GerritM
Terry Reedy schreef: GerritM wrote: I have automated image generation with Python, win32com and Visio5.0. This works well upto Python2.5 but fails with Python 2.6. Short term solution is to return to 2.5 :-(. I have reproduced the bug below with a minimum of Python lines. Below the problem

Re: Python2.6 + win32com crashes with unicode bug

2009-10-29 Thread John Machin
On Oct 30, 11:11 am, Terry Reedy wrote: > GerritM wrote: [snip] > >   File "C:\Python26\lib\site-packages\win32com\client\build.py", line > > 542, in > >     return filter( lambda char: char in valid_identifier_chars, className) > > UnicodeDecodeError: &#

Re: Python2.6 + win32com crashes with unicode bug

2009-10-29 Thread Terry Reedy
GerritM wrote: I have automated image generation with Python, win32com and Visio5.0. This works well upto Python2.5 but fails with Python 2.6. Short term solution is to return to 2.5 :-(. I have reproduced the bug below with a minimum of Python lines. Below the problem the working example

Python2.6 + win32com crashes with unicode bug

2009-10-29 Thread GerritM
I have automated image generation with Python, win32com and Visio5.0. This works well upto Python2.5 but fails with Python 2.6. Short term solution is to return to 2.5 :-(. I have reproduced the bug below with a minimum of Python lines. Below the problem the working example from 2.5 kind

Re: how can i use lxml with win32com?

2009-10-26 Thread elca
t; the collective IQ of thousands of individuals across > the Internet is simply amazing." - Vinod Valloppillil > http://www.catb.org/~esr/halloween/halloween4.html > -- > http://mail.python.org/mailman/listinfo/python-list > > Hi, thanks for your help.. thread is too

Re: how can i use lxml with win32com?

2009-10-25 Thread Irmen de Jong
Michiel Overtoom wrote: elca wrote: im sorry ,also im not familiar with newsgroup. It's not a newsgroup, but a mailing list. And if you're new to a certain community you're not familiar with, it's best to lurk a few days to see how it is used. Pot. Kettle. Black. comp.lang.python really i

Re: how can i use lxml with win32com?

2009-10-25 Thread Michiel Overtoom
elca wrote: http://news.search.naver.com/search.naver?sm=tab_hty&where=news&query=korea+times&x=0&y=0 that is korea portal site and i was search keyword using 'korea times' and i want to scrap resulted to text name with 'blogscrap_save.txt' Aha, now we're getting somewhere. Getting and parsin

Re: how can i use lxml with win32com?

2009-10-25 Thread Michiel Overtoom
elca wrote: im sorry ,also im not familiar with newsgroup. It's not a newsgroup, but a mailing list. And if you're new to a certain community you're not familiar with, it's best to lurk a few days to see how it is used. so this position is bottom-posting position? It is, but you should

Re: how can i use lxml with win32com?

2009-10-25 Thread elca
d? Try to answer questions like: Where does >>>>> your >>>>> data come from? Is it XML or HTML? What do you want to do with it? >>>>> >>>>> This might help: >>>>> >>>>> http://www.catb.org/~esr/fa

Re: how can i use lxml with win32com?

2009-10-25 Thread paul
elca schrieb: Hi, thanks a lot. studying alone is tough thing :) how can i improve my skill... 1. Stop top-posting. 2. Read documentation 3. Use the interactive prompt cheers Paul paul kölle wrote: elca schrieb: Hello, Hi, following is script source which can beautifulsoup and PAMIE

Re: how can i use lxml with win32com?

2009-10-25 Thread elca
e lines, only one of which gives a tiny hint >>> on >>> what you actually want to do. What about providing an explanation of >>> what >>> you want to achieve instead? Try to answer questions like: Where does >>> your >>> data come from? Is it XML

Re: how can i use lxml with win32com?

2009-10-25 Thread paul
elca schrieb: Hello, Hi, following is script source which can beautifulsoup and PAMIE work together. but if i run this script source error was happened. AttributeError: PAMIE instance has no attribute 'pageText' File "C:\test12.py", line 7, in bs = BeautifulSoup(ie.pageText()) You could

Re: how can i use lxml with win32com?

2009-10-25 Thread elca
t and > BeautifulSoup parses it', then maybe yes. > > Greetings, > > -- > "The ability of the OSS process to collect and harness > the collective IQ of thousands of individuals across > the Internet is simply amazing." - Vinod Valloppillil > http://www

Re: how can i use lxml with win32com?

2009-10-25 Thread Michiel Overtoom
elca wrote: actually what i want to parse website is some different language site. A different website? What website? What text? Please show your actual use case, instead of smokescreens. so i was quote some common english website for easy understand. :) And, did you learn somethin

Re: how can i use lxml with win32com?

2009-10-25 Thread elca
t; im very sorry my english. > > You English is quite understandable. The hard part is figuring out what > exactly you wanted to achieve ;-) > > I have a question too. Why did you think JavaScript was necessary to > arrive at this result? > > Greetings, > -- > http://mail.python.org/mailman/listinfo/python-list > > -- View this message in context: http://www.nabble.com/how-can-i-use-lxml-with-win32com--tp26044339p26045979.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo/python-list

Re: how can i use lxml with win32com?

2009-10-25 Thread Stefan Behnel
elca, 25.10.2009 08:46: > im very sorry my english. It's fairly common in this news-group that people do not have a good level of English, so that's perfectly ok. But you should try to provide more information in your posts. Be explicit about what you tried and what failed (and how!), and provide

Re: how can i use lxml with win32com?

2009-10-25 Thread Michiel Overtoom
elca wrote: yes i want to extract this text 'CNN Shop' and linked page 'http://www.turnerstoreonline.com'. Well then. First, we'll get the page using urrlib2: doc=urllib2.urlopen("http://www.cnn.com";) Then we'll feed it into the HTML parser: soup=BeautifulSoup(doc) Next, we'll loo

Re: how can i use lxml with win32com?

2009-10-25 Thread elca
hat what you want? > > Greetings, > -- > http://mail.python.org/mailman/listinfo/python-list > > -- View this message in context: http://www.nabble.com/how-can-i-use-lxml-with-win32com--tp26044339p26045811.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo/python-list

Re: how can i use lxml with win32com?

2009-10-25 Thread User
On 25 Oct 2009, at 08:33 , elca wrote: www.cnn.com in main website page. for example ,if you see www.cnn.com's html source, maybe you can find such like line of html source. http://www.turnerstoreonline.com/ CNN Shop and for example if i want to extract 'CNN Shop' text in html source. So,

Re: how can i use lxml with win32com?

2009-10-25 Thread elca
eproduce > it manually in the webbrowser so I get a clear idea what exactly > you're trying to achieve. > > Greetings, > > -- > http://mail.python.org/mailman/listinfo/python-list > > -- View this message in context: http://www.nabble.com/how-can-i-use-lxml-with-win

Re: how can i use lxml with win32com?

2009-10-25 Thread User
On 25 Oct 2009, at 08:06 , elca wrote: because of javascript im trying to insist use PAMIE. I see, your problem is not with lxml or BeautifulSoup, but getting the raw data in the first place. i want to extract some text in CNN website with 'CNN Shop' 'Site map' in bottom of CNN website

Re: how can i use lxml with win32com?

2009-10-25 Thread elca
usion for > you, I think. > > Greetings, > -- > http://mail.python.org/mailman/listinfo/python-list > > -- View this message in context: http://www.nabble.com/how-can-i-use-lxml-with-win32com--tp26044339p26045673.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo/python-list

Re: how can i use lxml with win32com?

2009-10-24 Thread User
On 25 Oct 2009, at 07:45 , elca wrote: i want to make web scraper. if possible i really want to make it work together with beautifulsoup or lxml with PAMIE. Scraping information from webpages falls apart in two tasks: 1. Getting the HTML data 2. Extracting information from the HTML data

Re: how can i use lxml with win32com?

2009-10-24 Thread elca
nswer questions like: Where does your > data come from? Is it XML or HTML? What do you want to do with it? > > This might help: > > http://www.catb.org/~esr/faqs/smart-questions.html > > Stefan > -- > http://mail.python.org/mailman/listinfo/python-list > > -

Re: how can i use lxml with win32com?

2009-10-24 Thread Stefan Behnel
Hi, elca, 25.10.2009 02:35: > hello... > if anyone know..please help me ! > i really want to know...i was searched in google lot of time. > but can't found clear soultion. and also because of my lack of python > knowledge. > i want to use IE.navigate function with beautifulsoup or lxml.. > if anyo

how can i use lxml with win32com?

2009-10-24 Thread elca
lease help me! thanks in advance .. -- View this message in context: http://www.nabble.com/how-can-i-use-lxml-with-win32com--tp26044339p26044339.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo/python-list

win32com lotus notes: not opened

2009-10-20 Thread Threader Slash
Hi Everybody, Hope someone can point me some direction... I got python linking to lotus notes, under Eclipse IDE. The code is: import pythoncom import pywintypes from win32com.client import Dispatch session=Dispatch("Lotus.NotesSession") session print pythoncom.CreateGuid() try: session.In

Re: py2exe + win32com + DAO

2009-05-14 Thread Trevor
I think the problem I am experiencing bears a resemblance to the content of this post: http://mail.python.org/pipermail/python-list/2001-February/071421.html Does anyone know what the GUID for the DAO 3.6 library is (or can explain how I can find it)? On May 12, 11:00 pm, David Lyon wrote: > On

Re: py2exe + win32com + DAO

2009-05-12 Thread David Lyon
On Tue, 12 May 2009 22:06:42 -0700 (PDT), Trevor wrote: > I do not believe your assertion applies to the following line of code: > > daoEngine = win32com.client.Dispatch(r'DAO.DBEngine.36') It doesn't. I'm simply suggesting that it is possible you are opening the database in Access or something

Re: py2exe + win32com + DAO

2009-05-12 Thread Trevor
opening it as a subprocess, it's already locked. > > It's possible the win32com module is not giving you a very > descriptive error message. > > Try running your process while vb is running at the same time > with the database open and if you get the same error then it >

Re: py2exe + win32com + DAO

2009-05-12 Thread David Lyon
Maybe VB is opening the table in Exclusive mode... then when you are opening it as a subprocess, it's already locked. It's possible the win32com module is not giving you a very descriptive error message. Try running your process while vb is running at the same time with the database o

py2exe + win32com + DAO

2009-05-12 Thread Trevor
I have a Python code module that adds records to a MS Access database. The following line of code executes successfully when the code module is run as a Python script: daoEngine = win32com.client.Dispatch(r'DAO.DBEngine.36') It also runs successfully when the Python script is compiled and run as

Re: win32com python AttributeError!

2009-03-31 Thread Mark Hammond
with win32com for python. I get the following error when I try to issue any command after using Dispatch. xl=win32com.client.Dispatch("Excel.Application") xl.Visible=0 Traceback (most recent call last): File "", line 1, in ? xl.Visible=0 File "D:\Python22\L

Re: win32com python AttributeError!

2009-03-31 Thread Mike Driscoll
On Mar 30, 11:17 pm, Michael wrote: > Hi Python-list - > > Has anyone figured this out from Rebecca: > > Hi, I am having trouble with win32com for python.  I get the following > error when I try to issue any command after using Dispatch. > > >>> xl=win32com.c

win32com python AttributeError!

2009-03-30 Thread Michael
Hi Python-list - Has anyone figured this out from Rebecca: Hi, I am having trouble with win32com for python. I get the following error when I try to issue any command after using Dispatch. >>> xl=win32com.client.Dispatch("Excel.Application") >>> xl.Visible=0 Trac

Re: py2exe - win32com - GetGeneratePath Error

2009-03-25 Thread Mark Hammond
eas? HERE IS THE ERROR. If anyone is good at this please email me back. --- Traceback (most recent call last): File "AppleHackGUI.pyw", line 376, in File "Main.pyc", line 29, in __init__ File "win32com\client\__init__.pyc&quo

py2exe - win32com - GetGeneratePath Error

2009-03-25 Thread Christopher Panici
his please email me back. --- Traceback (most recent call last): File "AppleHackGUI.pyw", line 376, in File "Main.pyc", line 29, in __init__ File "win32com\client\__init__.pyc", line 250, in DispatchWithEvents File &quo

Setting DNS using win32com

2009-02-10 Thread Nacho
I am trying to make a small python application to change DNS servers in a small LAN. I am trying this code but I don't manage it to work, I only get the values removed. My code is this: import win32com.client objWMIService = win32com.client.GetObject("winmgmts: {impersonationLevel=impersonate}!

Re: win32com and DispatchWithEvents

2008-11-14 Thread RyanN
On Nov 13, 2:16 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote: > On Nov 13, 10:27 am, RyanN <[EMAIL PROTECTED]> wrote: > > > > > Greetings, > > > I'm trying to get DispatchWithEvents() to work with HyperAccess > > (terminal program) without much success. I've done a bunch of > > searching and found s

Re: win32com and DispatchWithEvents

2008-11-13 Thread Mike Driscoll
On Nov 13, 10:27 am, RyanN <[EMAIL PROTECTED]> wrote: > Greetings, > > I'm trying to get DispatchWithEvents() to work with HyperAccess > (terminal program) without much success. I've done a bunch of > searching and found some examples using IE: > > This works but doesn't handle the "Event Driven Fu

win32com and DispatchWithEvents

2008-11-13 Thread RyanN
Greetings, I'm trying to get DispatchWithEvents() to work with HyperAccess (terminal program) without much success. I've done a bunch of searching and found some examples using IE: This works but doesn't handle the "Event Driven Functions": haObj = win32com.client.Dispatch(r"HAWin32") And so doe

Re: why would 'import win32com' fail?

2008-10-23 Thread bill
On Oct 23, 3:21 pm, bill <[EMAIL PROTECTED]> wrote: > All, > > I am trying to access Excel from Python. Many of the examples started > with: > >       import win32com >       >       blah, blah > > I try that from my Python shell and it fails. What

Re: why would 'import win32com' fail?

2008-10-23 Thread [EMAIL PROTECTED]
On Oct 23, 3:21 pm, bill <[EMAIL PROTECTED]> wrote: > All, > > I am trying to access Excel from Python. Many of the examples started > with: > >       import win32com >       >       blah, blah > > I try that from my Python shell and it fails. What am I mis

Re: why would 'import win32com' fail?

2008-10-23 Thread Mike Driscoll
On Oct 23, 2:21 pm, bill <[EMAIL PROTECTED]> wrote: > All, > > I am trying to access Excel from Python. Many of the examples started > with: > >       import win32com >       >       blah, blah > > I try that from my Python shell and it fails. What am I mi

Re: why would 'import win32com' fail?

2008-10-23 Thread Marc 'BlackJack' Rintsch
On Thu, 23 Oct 2008 12:21:29 -0700, bill wrote: > I am trying to access Excel from Python. Many of the examples started > with: > > import win32com > > blah, blah > > I try that from my Python shell and it fails. What am I missing here? The `win3

Re: why would 'import win32com' fail?

2008-10-23 Thread Chris Rebert
On Thu, Oct 23, 2008 at 12:21 PM, bill <[EMAIL PROTECTED]> wrote: > All, > > I am trying to access Excel from Python. Many of the examples started > with: > > import win32com > > blah, blah > > I try that from my Python shell and it fails.

why would 'import win32com' fail?

2008-10-23 Thread bill
All, I am trying to access Excel from Python. Many of the examples started with: import win32com blah, blah I try that from my Python shell and it fails. What am I missing here? TIA, Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: Dummy explanation to win32com needed

2008-10-23 Thread Tim Golden
korean_dave wrote: Hi. I need a dummy's explanation to utilizing the win32com component to access Microsoft Excel. So far, I have this code. import win32com.client xl = win32com.client.Dispatch("Excel.Application") xl.Visible = 1 workbook = xl.Workbooks.Op

Re: Dummy explanation to win32com needed

2008-10-22 Thread Darcy Mason
On Oct 22, 3:43 pm, korean_dave <[EMAIL PROTECTED]> wrote: > Hi. I need a dummy's explanation to utilizing the win32com component > to access Microsoft Excel. > > So far, I have this code. > >     import win32com.client >     xl = win32com.client.Dispatch("Exc

Dummy explanation to win32com needed

2008-10-22 Thread korean_dave
Hi. I need a dummy's explanation to utilizing the win32com component to access Microsoft Excel. So far, I have this code. import win32com.client xl = win32com.client.Dispatch("Excel.Application") xl.Visible = 1 workbook = xl.Workbooks.Open("C:\test.xls&qu

Re: Date type in win32com?

2008-08-27 Thread Gabriel Genellina
En Tue, 26 Aug 2008 08:53:40 -0300, Haeyoung Kim <[EMAIL PROTECTED]> escribi�: I'm migrating a VBScript into python. How should I convert Date type parameter in VBScript's COM interface with win32com? Look for PyTime in the pywin32 documentation. -- Gabriel Ge

Re: Date type in win32com?

2008-08-27 Thread Tim Golden
Haeyoung Kim wrote: Hi. I'm migrating a VBScript into python. How should I convert Date type parameter in VBScript's COM interface with win32com? I couldn't find any answer yet... Could you give an example of code you're trying to translate? Normally it's qu

Date type in win32com?

2008-08-26 Thread Haeyoung Kim
Hi. I'm migrating a VBScript into python. How should I convert Date type parameter in VBScript's COM interface with win32com? I couldn't find any answer yet... Thank you in advance. -- http://mail.python.org/mailman/listinfo/python-list

Re: ??????: How to use win32com to convert a MS WORD doc to HTML ?

2008-08-20 Thread Grzegorz Staniak
On 2008-08-20, Lave <[EMAIL PROTECTED]> wroted: > It's solved. > > Thank you all! You saved my life! Thank you very much. > > I love you! I love Python! ... I love the whole world, and all its languages, Boom-de-yada, boom-de-yada, boom-de-yada, boom-de-yada... Very sorry, but I just couldn'

回复: How to use win32com to co nvert a MS WORD doc to HTML ?

2008-08-19 Thread Lave
I want to convert MS WORD docs to HTML, I found python windows >> extension win32com can make this. But I can't find the method, and I >> can't find any document helpful. > > This should be a useful starting point: > <http://code.activestate.com/recipes/279003/>

Re: How to use win32com to convert a MS WORD doc to HTML ?

2008-08-19 Thread Simon Brunning
2008/8/19 Lave <[EMAIL PROTECTED]>: > Hi, all ! > > I'm a totally newbie huh:) > > I want to convert MS WORD docs to HTML, I found python windows > extension win32com can make this. But I can't find the method, and I > can't find any document helpful. Thi

Re: How to use win32com to convert a MS WORD doc to HTML ?

2008-08-19 Thread Tim Golden
Lave wrote: Hi, all ! I'm a totally newbie huh:) I want to convert MS WORD docs to HTML, I found python windows extension win32com can make this. But I can't find the method, and I can't find any document helpful. You have broadly two approaches here, both involving automating

RE: How to use win32com to convert a MS WORD doc to HTML ?

2008-08-19 Thread Reedick, Andrew
> -Original Message- > From: [EMAIL PROTECTED] [mailto:python- > [EMAIL PROTECTED] On Behalf Of Lave > Sent: Tuesday, August 19, 2008 10:06 AM > To: python-list@python.org > Subject: How to use win32com to convert a MS WORD doc to HTML ? > > Hi, all ! >

How to use win32com to convert a MS WORD doc to HTML ?

2008-08-19 Thread Lave
Hi, all ! I'm a totally newbie huh:) I want to convert MS WORD docs to HTML, I found python windows extension win32com can make this. But I can't find the method, and I can't find any document helpful. Can anyone help me? Thank in advance. -- http://mail.python.org/mailman/listinfo/python-list

Re: win32com ChartObject pythonwin vs idle

2008-08-01 Thread sterling
On Jul 31, 11:22 pm, "Roger Upole" <[EMAIL PROTECTED]> wrote: > "sterling" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > > > > > I'm curious as to why the difference between IDLE and pythonWin when > &

Re: win32com ChartObject pythonwin vs idle

2008-07-31 Thread Roger Upole
"sterling" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm curious as to why the difference between IDLE and pythonWin when > using win32com. > opening an excel file, i've attempted to grab the chart information > out of the file. > &g

Re: win32com ChartObject pythonwin vs idle

2008-07-31 Thread sterling
On Jul 31, 4:28 am, Tim Golden <[EMAIL PROTECTED]> wrote: > sterling wrote: > > I'm curious as to why the difference between IDLE and pythonWin when > > using win32com. > > opening an excel file, i've attempted to grab the chart information > &

Re: win32com ChartObject pythonwin vs idle

2008-07-31 Thread Tim Golden
sterling wrote: I'm curious as to why the difference between IDLE and pythonWin when using win32com. opening an excel file, i've attempted to grab the chart information out of the file. commands like co = ChartObjects(1) works in pythonWin but doesn't work in IDLE. howe

win32com ChartObject pythonwin vs idle

2008-07-30 Thread sterling
I'm curious as to why the difference between IDLE and pythonWin when using win32com. opening an excel file, i've attempted to grab the chart information out of the file. commands like co = ChartObjects(1) works in pythonWin but doesn't work in IDLE. however, on both co = charto

Re: how to recognize IE window already opened using win32com extension

2008-07-07 Thread Mike Driscoll
On Jul 7, 11:16 am, Tim Golden <[EMAIL PROTECTED]> wrote: > korean_dave wrote: > > How do I use the win32com API to manipulate IE windows ALREADY open? > > > ie = Dispatch("InternetExplorer.Application") opens a new window. > > > But I'd like to be a

Re: how to recognize IE window already opened using win32com extension

2008-07-07 Thread Mike Driscoll
On Jul 7, 11:09 am, korean_dave <[EMAIL PROTECTED]> wrote: > How do I use the win32com API to manipulate IE windows ALREADY open? > > ie = Dispatch("InternetExplorer.Application") opens a new window. > > But I'd like to be able to find, of windows alrea

Re: how to recognize IE window already opened using win32com extension

2008-07-07 Thread Tim Golden
korean_dave wrote: How do I use the win32com API to manipulate IE windows ALREADY open? ie = Dispatch("InternetExplorer.Application") opens a new window. But I'd like to be able to find, of windows already open, a specific window (with a specified property, matching url, etc.

how to recognize IE window already opened using win32com extension

2008-07-07 Thread korean_dave
How do I use the win32com API to manipulate IE windows ALREADY open? ie = Dispatch("InternetExplorer.Application") opens a new window. But I'd like to be able to find, of windows already open, a specific window (with a specified property, matching url, etc.) -- http://mail.pyt

Re: win32com extension documentation/API

2008-07-07 Thread Mike Driscoll
spn.activestate.com/ASPN/docs/ActivePython/2.4/pywin32/PyWin32.html http://aspn.activestate.com/ASPN/docs/ActivePython/2.4/pywin32/html/com/win32com/HTML/docindex.html There is a book on using the win32 modules that is still relevant by Mark Hammond. It's fairly pricey, but good. And the

win32com extension documentation/API

2008-07-07 Thread korean_dave
Hi. Where can i find the API for this extension? Sourceforge only has downloads. Python has stopped supporting the upkeep of the versions. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Error with win32com client on windows 2003 server

2008-04-18 Thread Mike Driscoll
em running this script on a windows xp machine with > python 2.5.2 and windows extensions. But I get the following error when I run > the same script on a windows 2003 server with the same python and windows > extension installation: > > excel = win32com.client.Dispatch("Excel.A

  1   2   3   >