Re: Newbie: Win32 COM problem

2010-08-25 Thread Paul Hemans
Yes, that was it. I just needed to restart the host process. Thanks "Mark Hammond" wrote in message news:mailman.51.1282784920.29448.python-l...@python.org... > On 25/08/2010 10:33 PM, Paul Hemans wrote: >>File "C:\development\PyXLS\pyXLS.py", line 13, in createSheet >> def createBook(s

Re: Newbie: Win32 COM problem

2010-08-25 Thread Mark Hammond
On 25/08/2010 10:33 PM, Paul Hemans wrote: File "C:\development\PyXLS\pyXLS.py", line 13, in createSheet def createBook(self): AttributeError: WrapXLS instance has no attribute '_book' pythoncom error: Python error invoking COM method. Can anyone help? That line seems an unlikely sourc

Newbie: Win32 COM problem

2010-08-25 Thread Paul Hemans
Simple class to wrap the xlwt module for COM access pyXLS.py: from xlwt import Workbook class WrapXLS: _reg_clsid_ = "{c94df6f0-b001-11df-8d63-00e09103a9a0}" _reg_desc_ = "XLwt wrapper" _reg_progid_ = "PyXLS.Write" _public_methods_ = ['createBook','createSheet','writeSheetCell',

Re: Win32.com

2007-11-13 Thread Colin J. Williams
goldtech wrote: > Given WinXP. I remove Pythonwin and it seems I lose win32.com. I > can't import win32.com Is win32.com bundled with Pythonwin? > Yes. Colin W. -- http://mail.python.org/mailman/listinfo/python-list

Re: Win32.com

2007-11-13 Thread Matimus
On Nov 13, 9:37 am, goldtech <[EMAIL PROTECTED]> wrote: > Given WinXP. I remove Pythonwin and it seems I lose win32.com. I > can't import win32.com Is win32.com bundled with Pythonwin? They are part of the same package. I'm not sure that there are any dependencies. It is

Win32.com

2007-11-13 Thread goldtech
Given WinXP. I remove Pythonwin and it seems I lose win32.com. I can't import win32.com Is win32.com bundled with Pythonwin? -- http://mail.python.org/mailman/listinfo/python-list

Re: win32 com problem

2006-12-05 Thread Mike P
No Problem, Thanks for your help so far, i've sent this problem off to SPSS as it seems it doesn't work on a work colleagues machine either Thanks for your time though Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: win32 com problem

2006-12-05 Thread John Machin
Mike P wrote: > Thanks for the quick reply, > > the code i am running is the following > > import win32com.client > xl = win32com.client.Dispatch("Excel.Application") > ppt = win32com.client.Dispatch("PowerPoint.Application") > ppt.Visible = 1 #open MS Powerpoint > xl.Visible = 1 #open MS Excel >

Re: win32 com problem

2006-12-05 Thread Mike P
Thanks for the quick reply, the code i am running is the following import win32com.client xl = win32com.client.Dispatch("Excel.Application") ppt = win32com.client.Dispatch("PowerPoint.Application") ppt.Visible = 1 #open MS Powerpoint xl.Visible = 1 #open MS Excel xl.Workbooks.Open('%s/working_out

Re: win32 com problem

2006-12-05 Thread John Machin
Mike P wrote: > I've got a slight problem when running an excel macro from python using > the win32.com.client module, in that it says it can't load the DLL file Does it? All I see is a message that it can't find a macro. > (it doesn't say which one) What happens when you run the macro from the

win32 com problem

2006-12-05 Thread Mike P
I've got a slight problem when running an excel macro from python using the win32.com.client module, in that it says it can't load the DLL file (it doesn't say which one) and gives me the following error message Traceback (most recent call last): File "", line 93, in ? File ">", line 14, in R

Re: Win32 COM

2006-11-02 Thread Tom Plunket
Tom Plunket wrote: > I don't know anything about COM beyond the fact that I can look in the > OLE/COM browser to maybe figure out the API that an object has that I > need to operate on. I'm still not entirely sure what's going on, because there are some methods and properties that are available b

Win32 COM

2006-11-01 Thread Tom Plunket
I don't know anything about COM beyond the fact that I can look in the OLE/COM browser to maybe figure out the API that an object has that I need to operate on. Usually this gets me by fine; I've written mostly utilities for Developer Studio which work fine if a little slow, and a bit of junk for

Re: Can I use win32 COM object in a thread?

2005-12-14 Thread Pelmen
Sorry for post, answer was near ... just do search 2. Ixokai From: "Ixokai" <[EMAIL PROTECTED]> Mon, 9 Feb 2004 11:05:08 -0800 Basically, adodbapi uses COM, and COM and threads require a bit of care, apparently. Your webkit thing may be using a thread to handle stuff. import pythoncom python

Can I use win32 COM object in a thread?

2005-12-14 Thread Pelmen
When I try to call a method of COM object, it return error about "There wasn't 'CoInitialize' call", or if I use thread, I have to access COM object methods in other way? thanks for any help -- http://mail.python.org/mailman/listinfo/python-list

Re: win32 COM and data types / direction

2005-03-05 Thread Tim Roberts
Alexander Eisenhuth <[EMAIL PROTECTED]> wrote: > >Hello everybody, > >i wonder how the win32 COM extension handles different C-int types >(short, int, long). All of those types are passed on the stack as 32-bit dwords. No problem. >Another question for me is weather

Re: win32 COM and data types / direction

2005-03-04 Thread Thomas Heller
Alexander Eisenhuth <[EMAIL PROTECTED]> writes: > Hello everybody, > > i wonder how the win32 COM extension handles different C-int types > (short, int, long). Another question for me is weather the > "out-direction" of parameter is supported "out of the box&q

win32 COM and data types / direction

2005-03-04 Thread Alexander Eisenhuth
Hello everybody, i wonder how the win32 COM extension handles different C-int types (short, int, long). Another question for me is weather the "out-direction" of parameter is supported "out of the box" ? To clarify look at the met

Greetings and win32 com events question

2005-01-27 Thread Robert Kaplan
Hi, I'm new to the group, so greetings all! I'm working on an application try to respond to events in Microsoft Access using Python and win32com. However, I'm having trouble in setting up the event handlers. I can think of 2 approaches both of which yield win32com errors. First is the approac