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
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
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',
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
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
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
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
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
>
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
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
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
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
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
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
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
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
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
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
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
19 matches
Mail list logo