[Tutor] unicode help (COM)

Rene Bourgoin r2b2 at myway.com
Thu Dec 2 02:18:06 CET 2004


Thanks for the responses. i'm a non-programmer and was learning/playing with some pyhton COM .

I'm trying to get my resluts from an excel spreadsheet to be saved or printed or stored as a python string. when i run this the results are in  unicode.....


from win32com.client import Dispatch
xlApp = Dispatch("Excel.Application")
xlApp.Visible = 0
xlApp.Workbooks.Open("c:\sheet.xls")
excelout = ()
excelout = xlApp.ActiveSheet.Range("C4:D10").Value
for item in excelout:
   print item

_______________________________________________
No banners. No pop-ups. No kidding.
Make My Way your home on the Web - http://www.myway.com


More information about the Tutor mailing list