ActiveX control

A

alex

Hi,
I have an ActiveX control in a Word document, which shows an image generated
at runtime.
The problem is, if a user who has not this control installed opens the
document, it still might show an image generated at the time the document
has been saved. Is there any way to prevent Word from saving the image of
the control? I know I could intercept FileSave and FileSaveAs from a macro,
but is it possible to do it from the control itself, ie make it act as an
installed Word plugin? I'd like it to work with Word 97 and up.
Alex.
 
C

Cindy M -WordMVP-

Hi Alex,
I have an ActiveX control in a Word document, which shows an image generated
at runtime.
The problem is, if a user who has not this control installed opens the
document, it still might show an image generated at the time the document
has been saved. Is there any way to prevent Word from saving the image of
the control? I know I could intercept FileSave and FileSaveAs from a macro,
but is it possible to do it from the control itself, ie make it act as an
installed Word plugin? I'd like it to work with Word 97 and up.
About the only thing I can imagine would be an AutoOpen macro that could
perform some sort of check and remove the control (or possibly change its
state, if the ActiveX provides an automation interface).

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
A

Alex Ivanov

Macros can be disabled.
I found a workaround by capturing the document's Close event, changing the
image and then re-saving the document.
This works, but I think of a cleaner solution; I don't want to save the
document twice, as it is easy to intercept the state of the document between
two saves. In my present case it does not really matter, but it might in the
future.
 

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