WordML : protect my tags

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

I'd like to protect tags added with an add-in I created using C# .net.

Tags are inserted like this:
<MyTag>
<p>
<r>
<t>Hello</t>
</r>
</p>
</Mytag>

The event XMLAfterInsert fires when I add my tag, but the event
XMLBeforeDelete doesn't fire when the user erase the tag (with his keyboard).

So i'm trying to protect my tags but nothing really works...I tried to use
the XMLSelectionChange event, but there's still bugs here.

Someone has an idea...how could I protect my tags from being deleted by users?

Thx,

Frenchy
 
Hi =?Utf-8?B?RnJlbmNoeQ==?=,

Try opening the document in Word. Tools/Protect document -> Protection task
pane. Activate the Editing Restrictions, and protect the document as Read-Only.

Now select only the areas in the document where the user is allowed to make any
changes, and click the "Everyone" box.
I'd like to protect tags added with an add-in I created using C# .net.

Tags are inserted like this:
<MyTag>
<p>
<r>
<t>Hello</t>
</r>
</p>
</Mytag>

The event XMLAfterInsert fires when I add my tag, but the event
XMLBeforeDelete doesn't fire when the user erase the tag (with his keyboard).

So i'm trying to protect my tags but nothing really works...I tried to use
the XMLSelectionChange event, but there's still bugs here.

Someone has an idea...how could I protect my tags from being deleted by users?

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

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

Back
Top