How to reference Ink objects in Word VBA

Hi,

I wasn't sure whether to put this question here or in the Word category, forgive me if I chose wrong.

I want to write a Word macro that will clear all Ink Annotation on a Word 2003 document on a Tablet PC.

I'm not sure what the objects are, and can't find them in the Object Browser.
Can anyone enlighten me?

Many Thanks
Janine
janineoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dds110Commented:
This should do it for ya (I think)

Function hide_ink()
ActiveDocument.ActiveWindow.View.ShowInkAnnotations = False
End Function
0
janineoAuthor Commented:
Sorry, not quite what I was after.

I have a document which I'm using the Ink Annotations so it can be signed by someone.
I want to add a toolbar which has a 'clear' button on it that will clear the signature if the signer makes an awful mistake, and allow them to re-sign it.
Hiding the annotations won't do that. I want to completely delete them.

Thanks,
Janine
0
dds110Commented:
Assuming you are using only 1 object for the annotations, you can use the "DeleteAllInkAnnotations" method.

Here's another example:

Function deleteInk()
ActiveDocument.DeleteAllInkAnnotations
End Function


HTH
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

dds110Commented:
Since I don't have a Tablet PC, perhaps you can post an example of a document with Ink Annotations In it for me to research.  I'm sure there's a simple solution to your needs.
0
janineoAuthor Commented:
That worked great, thanks!

I'm not a Word programmer usually, so i didn't think to look in the ActiveDoument method list!

Many Thanks,
Janine
0
dds110Commented:
Glad I could help.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.