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

2011-06-16 Thread Tom Hawkins
Does SaveAs save the doc to a txt file? What I was thinking is app.Documents.Open('D:/projects/Myself/HelloPython/src/Drugreservoir1. txt') can open the txt file which I can read. Is there any way I can read the saved txt file after SaveAs... Yes of course, you can use the ordinary Python file

[python-win32] Python vs Outlook Question

2011-06-16 Thread Shashwat Sinha
Hi, I wrote this simple code that works fine: import win32com.client as W olook = W.gencache.EnsureDispatch(%s.Application %profilename) mail = olook.CreateItem(W.constants.olMailItem) mail.Recipients.Add('x...@yahoo.com) mail.Subject = 'Hello' mail.Body = 'Hello' mail.Send() When I have

Re: [python-win32] Python vs Outlook Question

2011-06-16 Thread Tim Roberts
Shashwat Sinha wrote: Hi, I wrote this simple code that works fine: import win32com.client as W olook = W.gencache.EnsureDispatch(%s.Application %profilename) mail = olook.CreateItem(W.constants.olMailItem) mail.Recipients.Add('x...@yahoo.com mailto:%2...@yahoo.com) mail.Subject =

Re: [python-win32] Python vs Outlook Question

2011-06-16 Thread Tim Roberts
Shashwat Sinha wrote: Thanks for your response. After sending the post I was able to do attachments but other properties like SenderEmailAddress are not working. It gives me an AttributeError as follows: Traceback (most recent call last): ... File autoMailer.py, line 118, in

Re: [python-win32] Python vs Outlook Question

2011-06-16 Thread Shashwat Sinha
Thanks Tim. On Thu, Jun 16, 2011 at 5:33 PM, Tim Roberts t...@probo.com wrote: Shashwat Sinha wrote: Thanks for your response. After sending the post I was able to do attachments but other properties like SenderEmailAddress are not working. It gives me an AttributeError as follows:

[python-win32] ANN: PyGUI 2.5

2011-06-16 Thread Greg Ewing
PyGUI 2.5 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ Lots of new stuff in this version. Highlights include: - Improved facilities for customising the standard menus. - Functions for creating PyGUI Images from PIL images and numpy arrays. - ListButton - a