I use iewin.IEHtmlWindow to embed MS-word editing in my application.
The word document is generated from a template and already stored on
so it has a filename already.
If I edit the word document in iewin.IEHtmlWindow,
I want it to be saved automatically (e.g. if I push a close buttton or
navigate to another page).
If I give a ctrl-S, before moving to another page,
this works perfectly, without any word-dialogs.
But if I don’t give the ctrl-S, I get an ugly word dialog, asking me if
I want to save the changes.
I tried send-keys, but that doesn’t work :
` def _On_IE_Close ( self, event ) :
self.Html.SetFocus () # set focus to the
wx.CallLater ( 500, self.Aap )
def Aap ( self ) :
import SendKeys SendKeys.SendKeys ( '^s' ) wx.Sleep ( 1 ) self._IE_Doc_Close () # close the doc, by moving to
another dummy URL
Any suggestions / solutions ?