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