Detecting Picture Changes

  • Thread starter Scott McPhillips [MVP]
  • Start date
S

Scott McPhillips [MVP]

Is there a way to detect that the user has added/removed/changed a picture
(or any other non-text object)?
 
M

macropod

Hi Scott,

If you give a shape object a meaningful name, rather than the default name assigned by Word, and you keep a record of the names (eg
as a docproperty), it's unlikely that a user who adds/removes/changes the shape will be savvy enough to update the records. Note
that this won't work with inlineshapes, as they don't have an accessible name property. However, if you convert an inlineshape to a
shape, you can name it then convert it back to an inlineshape again. Then, when you want to query the inlineshape's name, you can
(temporarily) convert it to a shape again and query the name.

Cheers
 
S

Scott McPhillips [MVP]

Thanks for your comments. I did some playing around with shapes and their
names, but there does not seem to be any comparable object model that gives
information about pictures, imported drawings etc. I was hoping to come up
with a complete list of them so I could detect a user inserting or changing
such an object. Am I missing anything along these lines?

macropod said:
Hi Scott,

If you give a shape object a meaningful name, rather than the default name
assigned by Word, and you keep a record of the names (eg as a
docproperty), it's unlikely that a user who adds/removes/changes the shape
will be savvy enough to update the records. Note that this won't work with
inlineshapes, as they don't have an accessible name property. However, if
you convert an inlineshape to a shape, you can name it then convert it
back to an inlineshape again. Then, when you want to query the
inlineshape's name, you can (temporarily) convert it to a shape again and
query the name.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

Scott McPhillips said:
Is there a way to detect that the user has added/removed/changed a
picture (or any other non-text object)?
 

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