[python-win32] Error while listing the Installed Software using wmi module

2008-05-29 Thread siddhartha veedaluru
Hi all, The following code snippet gives the error import wmi c = wmi.WMI() for i in c.Win32_Product(): print i.Name Output --- Windows Installer Clean Up Python 2.5.1 Debugging Tools for Windows Windows Resource Kit Tools Adobe Reader 8.1.2 Java(TM) SE Runtime Environment 6 Java(TM) 6 U

[python-win32] how to change paper size while printing

2008-05-29 Thread Roger Upole
McPacino wrote: I have a network printer. the default paper size is A4. I have tried 2 ways to change the paper size: 1) p = win32print.OpenPrinter(dp) t = win32print.GetPrinter(p, 2) t['pDevMode'].FormName=u'a3' win32print.SetPrinter(p, 2, t, 0) these code cause error refuse access, which mayb

Re: [python-win32] Request for comments

2008-05-29 Thread Larry Bates
Tim Golden wrote: I have a request of the python-win32 community. Have a look at: http://timgolden.me.uk/python-on-windows/ In particular, click through to the section on the Registry (which is the only section which has anything useful in it!) and then tell me what you think. About anything.

Re: [python-win32] Dispatch InternetExplorer.Application fails

2008-05-29 Thread Waldemar Osuch
On Thu, May 29, 2008 at 7:26 AM, Rickey, Kyle W <[EMAIL PROTECTED]> wrote: > Thanks, I got your example working but unfortunately the results didn't > work good. Here's links to 2 pictures for comparison, sensitive > information removed. > > http://www.dsrt.org-a.googlepages.com/bad_report.png > ht

Re: [python-win32] How to get all the variables in a python shell

2008-05-29 Thread Mike Driscoll
> Hi! > I'm currently working on a scientific computation software built in > python. > What I want to implement is a Matlab style command window <-> > workspace interaction. > For example, you type 'a=1' in the command window, and you see a list > item named 'a' in the workspace. > You double cli

Re: [python-win32] Dispatch InternetExplorer.Application fails

2008-05-29 Thread Rickey, Kyle W
Thanks, I got your example working but unfortunately the results didn't work good. Here's links to 2 pictures for comparison, sensitive information removed. http://www.dsrt.org-a.googlepages.com/bad_report.png http://www.dsrt.org-a.googlepages.com/good_report.png It wouldn't let me attach the ima

Re: [python-win32] How to get all the variables in a python shell

2008-05-29 Thread Tim Golden
[Bizarrely, my mail system seems to be randomly misfiring. If you've already seen this, please ignore!] Tim Golden wrote: Sorry, having seen Roger D's memcached suggestion, I realise I may have misinterpreted your requirement. I thought that you wanted a Python interpreter session to share its ob

Re: [python-win32] MSProject and export maps

2008-05-29 Thread Tim Golden
Ron Henderson wrote: Tim Golden wrote: Ron Henderson wrote: Thanks so much for trying this out. You've verified that it's possible to get this working. However, when I execute the same code, the file "p2.csv" is exactly same size as p1.mpp and contains binary data, not the text. Since you

Re: [python-win32] How to get all the variables in a python shell

2008-05-29 Thread Tim Golden
Tim Golden wrote: [EMAIL PROTECTED] wrote: I'm currently working on a scientific computation software built in python. What I want to implement is a Matlab style command window <-> workspace interaction. For example, you type 'a=1' in the command window, and you see a list item named 'a' in the

[python-win32] how to change paper size while printing

2008-05-29 Thread McPacino
I have a network printer. the default paper size is A4. I have tried 2 ways to change the paper size: 1) p = win32print.OpenPrinter(dp) t = win32print.GetPrinter(p, 2) t['pDevMode'].FormName=u'a3' win32print.SetPrinter(p, 2, t, 0) these code cause error refuse access, which maybe because of it's

Re: [python-win32] How to get all the variables in a python shell

2008-05-29 Thread Dahlstrom, Roger
-Original Message- From: Paul Moore [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2008 7:23 AM To: Dahlstrom, Roger Cc: Python-Win32 List; [EMAIL PROTECTED] Subject: Re: [python-win32] How to get all the variables in a python shell On 29/05/2008, Dahlstrom, Roger <[EMAIL PROTECTED]> w

Re: [python-win32] How to get all the variables in a python shell

2008-05-29 Thread Paul Moore
On 29/05/2008, Dahlstrom, Roger <[EMAIL PROTECTED]> wrote: > I'd try looking at memcached (http://www.danga.com/memcached/apis.html). > No hacking or reimplementation of the interpreter would be necessary, and > there's a Python api available. I haven't used it for anything production > related,

Re: [python-win32] How to get all the variables in a python shell

2008-05-29 Thread Dahlstrom, Roger
-Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Golden > Sent: Thursday, May 29, 2008 4:11 AM > To: Python-Win32 List; [EMAIL PROTECTED] > Cc: Python-Win32 List > Subject: Re: [python-win32] How to get all the variables in a python shell > > [EMAIL P

Re: [python-win32] How to get all the variables in a python shell

2008-05-29 Thread Tim Golden
[EMAIL PROTECTED] wrote: I'm currently working on a scientific computation software built in python. What I want to implement is a Matlab style command window <-> workspace interaction. For example, you type 'a=1' in the command window, and you see a list item named 'a' in the workspace. You dou

Re: [python-win32] How to get all the variables in a python shell

2008-05-29 Thread Tim Golden
[EMAIL PROTECTED] wrote: I'm currently working on a scientific computation software built in python. What I want to implement is a Matlab style command window <-> workspace interaction. For example, you type 'a=1' in the command window, and you see a list item named 'a' in the workspace. You dou