Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. ActiveQt Word automation - every word event is fired three times

ActiveQt Word automation - every word event is fired three times

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    anagelcg
    wrote on last edited by
    #1

    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...

    1 Reply Last reply
    0
    • A Offline
      A Offline
      anagelcg
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved