[python-win32] dispatch and minimize the window?

2008-11-19 Thread Pahud
Hello list, I am trying to use win32com.client.Dispatch() to run my program but I would like to minimize it in the system tray. What can I do? thanks. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-wi

Re: [python-win32] getting integer value for worksheet.Cells(row, col).Value

2008-11-19 Thread Vernon Cole
Solomon: In what way did *int(worksheet.Cells(row, col).Value *not work? It seems that it should have. (You should not do a "cast", you want a conversion). To find out what's going on, try something like: alpha = worksheet.Cells(row,col).Value print 'Value was=', repr(alpha) Perhaps there is some

Re: [python-win32] COM AttributeError Inquiry

2008-11-19 Thread Mark Hammond
Search this mailing list for discussions about the COM threading model. In short, you can't create a COM object on one thread and use it on another - the object must be marshalled. Cheers, Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike O'Driscoll Sent: Thursda

Re: [python-win32] getting integer value for worksheet.Cells(row, col).Value

2008-11-19 Thread Tim Roberts
Greg Antal wrote: > > I think "Val" will be a method on the Excel server. For example, if > you have > xl = win32com.client.Dispatch("Excel.Application") > > for your server, you would have say something like > iValue = xl.Val(worksheet.Cells(row, col).Value) > > Again, I haven't used Excel

Re: [python-win32] getting integer value for worksheet.Cells(row, col).Value

2008-11-19 Thread Greg Antal
Solomon: I think "Val" will be a method on the Excel server. For example, if you have     xl = win32com.client.Dispatch("Excel.Application") for your server, you would have say something like     iValue = xl.Val(worksheet.Cells(row, col).Value) Again, I haven't used Excel this way, so I'm ju

[python-win32] COM AttributeError Inquiry

2008-11-19 Thread Mike O'Driscoll
Hi, First time contacting this mailing list... please forgive and discrepancies I may make. I have a threaded module with an internal com object. If I make a call from outside the module everything works ok. If I make a call internal to the module it decides to give me the following excepti

Re: [python-win32] getting integer value for worksheet.Cells(row, col).Value

2008-11-19 Thread bob gailer
[EMAIL PROTECTED] wrote: I just tried it ( I did: IntValue = Val(self.worksheet.Cells(row, col).Value)) Though It seems that the COM server doesn't know Val()... or am i doin something wrong?? I got the error: "NameError: global name 'Val' is not defined" Greg offered that for use "... in a Vi

Re: [python-win32] getting integer value for worksheet.Cells(row, col).Value

2008-11-19 Thread Solomon.Zewdie.Altek
I just tried it ( I did: IntValue = Val(self.worksheet.Cells(row, col).Value)) Though It seems that the COM server doesn't know Val()... or am i doin something wrong?? I got the error: "NameError: global name 'Val' is not defined" Von: [EMAIL PROTECTED] im Au

Re: [python-win32] getting integer value for worksheet.Cells(row, col).Value

2008-11-19 Thread Greg Antal
Solomon: To do this in a Visual Basic module within Excel, you would use intValue = Val(worksheet.Cells(row, col).Value) I haven't tried to use Excel as a COM server, but I think if you can use the "Val()" function, you'll get the data you want instead of a string. - Greg Antal Gregory W.

[python-win32] getting integer value for worksheet.Cells(row, col).Value

2008-11-19 Thread Solomon.Zewdie.Altek
Hi, the statement: worksheet.Cells(row, col).Value returns a Value of type of Strings, Can anyone tell me how I can get an Integer value? Casting (int(worksheet.Cells(row, col).Value ) didn't work. Many Tnx! solomon ___ python-win32 mailing list p