DDE between Word and ActiveX control on Word Events

  • Thread starter Pieter Morrison
  • Start date
P

Pieter Morrison

Hi,
I've got an activeX control (written in VC++) that allows sending content to
Word (in RTF format), allowing the user to edit it, and then, when the user
clicks "Save" in Word, retrieving the contents from Word in several formats.
I use DDE to transfer the data (because I do not want to mess the clipboard
up with content that the user hasn't put there).

Now, this works perfectly well if I initiate the "retrieval" of data from
the active x control (ie. I have a button there saying "Retrieve contents
from Word") - but as soon as I move the DDE "requests" code to the event
handler for the Word "BeforeSave" event, it takes about 10 seconds to do the
DDE Request, and then (in DDE Spy) - gives an error "#4002 Dataacktimeout".

The same happens if I modify the event handler for BeforeSave to just let my
ActiveX control generate its own event - and then in (for example)
javascript on the browser side trap my event, and then call the DDE request
code.

Anybody has any ideas?

Thanks,

Pieter Morrison
 
J

Jonathan West

Please don't post multiple copies of the same question into different
groups. I have posted an answer in the officedev group.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top