ActiveQt Word automation - every word event is fired three times



  • I use ActiveQt and word automation. I generated wrapper classes with the tool 'dumpcpp'. The word automation works good so far but I noticed that every event of the word application or a word document (e.g. DocumentBeforeClose, DocumentBeforeSave, Close, Quit, etc.) is fired exactly three times. Is that by design?
    I was forced to use the signal 'signal(...)' as a generic event handler because the direct connection to the events was not possible.

    Thanks for any help...



  • Does anybody had the same problems?

    The following code registers the generic event handler, but every event from word and from document is fired three times (sometimes more than three times, sometimes less). I need a solution for that, but my experiences in Qt and word automation are no so good, otherwise I can't implement a workflow! Or is that a bug in ActiveQt?

    @ Word::Application word = new Word::Application();
    connect(word, SIGNAL(signal(QString, int, void
    )), this, SLOT(onWordEvent(QString, int, void*)));@

    Additional information of my system environment:

    • Windows 8
    • Word 2013
    • Qt 4.8.5

    This has nothing to do with Windows 8 and Word 2013 because I tested it on a Windows 7 machine with Word 2010 -> the same situation.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.