[python-win32] Python 2.7.11 on Windows Server 2012 R2 standard - Error message "DLL load failed: %1 is not a valid Win32 application" after IMPORT WIN32SERVICE

2016-03-19 Thread Andreas
s()) File "D:\python27\lib\site-packages\win32\lib\pywintypes.py", line 64, in __import_pywin32_system_module__ import _win32sysloader ImportError: DLL load failed: %1 is not a valid Win32 application. What is the reason? How can I solve this problem? Best regards Andreas ___ python-win32 mailing list [email protected] https://mail.python.org/mailman/listinfo/python-win32

[python-win32] win32api: How to send WM_SIZING to a Window

2010-09-30 Thread Andreas Holtz
t byref, but this gave me the same exception. So, can someone explain me how to send this event to the window? Or perhaps my idea is total idiotic and one can archive this easy by a differnet way? Thanks in advance Andreas ___ python-win32 mailing lis

Re: [python-win32] win32api: How to send WM_SIZING to a Window

2010-09-30 Thread Andreas Holtz
30.09.2010 20:14: Andreas Holtz wrote: I have a program which I can control via COM and Python's win32com. This program will visualize a big tree, which gets created by my COM-commands. The problem is, that after each modification of the tree (like insert), the program refreshes its display

Re: [python-win32] win32api: How to send WM_SIZING to a Window

2010-09-30 Thread Andreas Holtz
am 30.09.2010 23:12: Andreas Holtz wrote: The program is CATIA from Dassault. They have a parameter to control the refresh of the display (CATIAApplication.RefreshDisplay = False) but this only works within their macro engine. For details see here: http://ww3.cad.de/foren/ubb/Forum137/HTML/001099

Re: [python-win32] Dropping support for Python 2.3?

2013-04-28 Thread Andreas Holtz
I'm bound to Python 2.5. I make heavy usage of 4Suite which is not supported for Python 2.6+ so I can not upgrade :( Or does anyone know a good XML lib that support xpath? Regards Andreas schrieb Michael Manfre am 26.03.2013 14:08: Anyone running a no longer supported version of Pyth

Re: [python-win32] Dropping support for Python 2.3?

2013-04-28 Thread Andreas Holtz
I didn't check it but will have a look. Thank you very much :) Andreas schrieb Amaury Forgeot d'Arc am 29.04.2013 00:38: 2013/4/29 Andreas Holtz mailto:[email protected]>> I'm bound to Python 2.5. I make heavy usage of 4Suite which is not supported for Pyth

Re: [python-win32] Passing Args through PythonService.exe

2013-07-24 Thread Andreas B
having to create a separate class/file for each environment and queue combination would be painful.  > This works for me by setting the _exe_args_ class variable (similar to _svc_name_) in my service class (found in win32serviceutil.py). Regards

[python-win32] Printing PDFs without external tools

2014-03-03 Thread Andreas Holtz
to change layout and paper size. I already checked out http://timgolden.me.uk/python/win32_how_do_i/print.html Is there really no way to print PDFs with Python setting whatever print settings I want? I thought Python can do anything... :'-( T

Re: [python-win32] Printing PDFs without external tools

2014-03-03 Thread Andreas Holtz
3rd party software (like Ghostscript). But I don't know how... Thanks Andreas schrieb Tim Roberts am 04.03.2014 05:52: On Mar 3, 2014, at 1:14 PM, Andreas Holtz wrote: I need want to print PDF files without the usage of tools like Adobe, Foxit, etc. THe printer does understand PDF files

Re: [python-win32] Windows automation basics

2014-03-05 Thread Andreas Holtz
ntually got the Word reference as an example: http://msdn.microsoft.com/en-us/library/office/ff837519%28v=office.15%29.aspx Same works with other Microsoft products and probably for most commercial products with COM support. Your last questions I can't answer. Hope this helps. Andreas schrieb

Re: [python-win32] Printing PDFs without external tools

2014-03-05 Thread Andreas Holtz
follow this idea a little more. Thanks a lot :-) Andreas ___ python-win32 mailing list [email protected] https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Referring to default (unnamed) property

2014-05-11 Thread Andreas Holtz
nerated by Dispatch) do.vars[param] is implemented as do.vars.Get(param) Regards Andreas PS: Feel free to correct me, if I am wrong. schrieb £ukasz Jakubowski am 10.05.2014 12:29: Self-reply... I got a bit confused actually, DOpus.vars is just like a bit broken list with extra methods/fiel

Re: [python-win32] howto get the typename of a comobject

2015-02-05 Thread Andreas Holtz
Another disadvantage of using EnsureDispatch instead of Dispatch is, that the user has to have write-rights on the Python-folder as the files are generated into a subfolder. Good luck with CATIA, you will need it! Andreas anton schrieb am 03.02.2015 um 23:49: Hi, I an using python using win32co

Re: [python-win32] Tkinter newbie

2015-03-02 Thread Andreas Holtz
'title'] = 'This is a title' selectedFile = tkFileDialog.askopenfile(mode='r', **options) is the code you are looking for. And perhaps you'll ask yourself, why you wanted to waste the precious time of others at the beginning, when learning and exploring by yoursel

Re: [python-win32] Tkinter newbie

2015-03-02 Thread Andreas Holtz
or "ask niceley and show that you tried yourself to find a solution". Andreas Ethan Furman schrieb am 02.03.2015 um 23:21: > On 03/02/2015 01:48 PM, Andreas Holtz wrote: > >> And perhaps you'll ask yourself, why you wanted to waste the precious time >>

Re: [python-win32] Oldest Python version for pywin32?

2015-04-20 Thread Andreas Holtz
I am one 2.5 user, too. Reason is, that thanks to 4Suite (which is a fantastic XML framework) we are bound to 2.5. I didn't find a better XML framework for Python but it's not gonna developed further and will not be ported to 3.x (reminds me of contacting Jeremy Kloth for a port to a newer Pytho

Re: [python-win32] printing landscape in Windows

2015-07-13 Thread Andreas Holtz
this, too. As you only want to print text files, you can use AutoIt to automate Notepad++ or the like. Set the default setting of the printer to landscape manually before. Regards Andreas Hans Becker schrieb am 10.06.2015 um 20:48: > Just about a month ago I started reading Learning Python

[python-win32] Re: Damaged Pythonwin installation

2004-12-20 Thread Andreas Krueger
. thx a lot in advance! Andreas --- [python-win32] Damaged Pythonwin installation Greg Chapman glc at well.com Thu Jan 1 14:27:22 EST 2004 I seem to have done something which has broken Pythonw

[python-win32] Array and CATIA

2007-05-07 Thread Andreas Holtz
Item(1).Position.GetComponents(positionArray) print result # print result gives defaultvalues of positionArray, # but should give other values # snip Thanks in advance Andreas -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat .

[python-win32] Properly encoded HTML from MSXML XLST processor into python string (via IStream) ?

2007-09-10 Thread Andreas Neubauer
Is there a way in python to provide an appropriate unicode object receiving the output without ignoring the encoding statement ? Any proven way using IXSLProcessor generating properly encoded HTML into python ? Kind regards Andreas Neubauer __

Re: [python-win32] passing array by reference (3)

2017-02-19 Thread Andreas Holtz
Hi Peter, >From Python call Catia.SystemService.Evaluate() and hand over a VB script that >does what you need but returns an Array. This works for all CATIA methods that use an Array as Input/Output-parameter. Regards Andreas Peter Enenkel schrieb am 17.02.2017 um 23:29: >

Re: [python-win32] passing array by reference (3)

2017-02-19 Thread Andreas Holtz
to be able to use Arrays as Input/Output-parameters. Regards Andreas Peter Enenkel schrieb am 19.02.2017 um 20:38: > Hello Andreas, > > thanks for this workaround suggestion. Do you know if this will work if I > want to evaluate something > context sensitive? I.E. Instea

Re: [python-win32] passing array by reference (3)

2017-02-19 Thread Andreas Holtz
I missed your second questions: I have no experience with this. But it looks like one could wrap a Python-array in such a VARIANT object and hand this to CATIA, like: v = VARIANT(pythoncom.VT_BYREF | pythoncom.VT_ARRAY | pythoncom.VT_R4, 12*[1.]) Worth a try. Peter Enenkel schrieb am 19.02.2017

[python-win32] Calling Methods of an object returned by an COMObject method

2019-09-19 Thread Andreas Merl
called. What am I missing? Thanks for your Help Best regards Andreas Merl ___ python-win32 mailing list [email protected] https://mail.python.org/mailman/listinfo/python-win32

[python-win32] Calling Methods of an object returned by an COMObject method

2019-09-19 Thread Andreas Merl
What am I missing? Thanks for your Help Best regards Andreas Merl ___ python-win32 mailing list [email protected] https://mail.python.org/mailman/listinfo/python-win32