[python-win32] Events from Microsoft Word 97 (events for Word 2000 is ok) - troubles

2008-01-16 Thread Wojtek P
I have some troubles with events from word97. My application now works great with Word2000 - but this is another python interface file (from makepy). But when i try unistall w2k and install w97 i must write another events handler. And now i have only OnDocumentChange event. Why i don't get any OnQu

[python-win32] How to use OpenOffice with win32com - saving and event handling?

2008-01-14 Thread Wojtek P
Hello :) I use python code to connect to MS Word and OpenOffice from python application.I have script code for Word, but i can't find any script to event handling for OpenOffice (by COM interface) :/ I need connect to events: OnQuit OnDocumentOpen OnDocumentBeforeSave OnDocumentBeforeClos

[python-win32] MS Word and Python - how to disable SaveAs event?

2007-12-14 Thread Wojtek P
Hello! I try use Microsoft Word and OpenOffice with Python - and i have some problems. How to disable "Save As" in word from python code, or how to cancel this function when user use it? This code below doesn't work :/ wxPython 2.8.4.2 Python 2.4.4 from win32com.client import DispatchWithEvent