Re: [python-win32] check if comserver is registered, no - install it?

2012-12-19 Thread Tom Hawkins
._handle = _dlopen(self._name, mode) WindowsError: [Error 193] %1 ist keine zul?ssige Win32-Anwendung For the benefit of anyone without German the last line of that translates as '%1 is not a valid Win32 application'. Tom Hawkins Principal Scientist Innospec Inc Tel: +44 (0)151 356 6197

Re: [python-win32] UnicodeEncodingError when print a doc file

2011-06-16 Thread Tom Hawkins
file into the Python variable filetext. If you just want to get the word count of this text, you don't need to use a loop, by the way - you can get it from: wordcount = len(filetext.split()) Tom Hawkins Principal Scientist Innospec Inc Tel: +44 (0)151 356 6197 Fax: +44 (0)151 356 6112

Re: [python-win32] UnicodeEncodingError when print a doc file

2011-06-15 Thread Tom Hawkins
Again these examples are for Word 2003. PS Profuse apologies for quoting the entire digest in my last message! Tom Hawkins Principal Scientist Innospec Inc Tel: +44 (0)151 356 6197 Fax: +44 (0)151 356 6112 image001.jpg___ python-win32

Re: [python-win32] How to specify parameters in a query using odbc

2011-02-02 Thread Tom Hawkins
Thanks for all the replies - it's now working fine with ? (after some delay caused by testing with a single parameter query but forgetting that the parameter has to be supplied as a single-member list)... Tom Tom Hawkins Principal Scientist Innospec Inc Tel: +44 (0)151 356 6197 Fax

[python-win32] How to specify parameters in a query using odbc

2011-02-01 Thread Tom Hawkins
I'm doing wrong please? Apologies if I've missed something stupid. I get the same error if I only specify one of the parameters with %s and leave the other one literal, by the way. Thanks, Tom Tom Hawkins Principal Scientist Innospec Inc Tel: +44 (0)151 356 6197 Fax: +44 (0)151 356