XMLBeforeDelete. Any way to cancel delete?

S

Sam

Currently, I try doing this:

private void wdDoc_XMLBeforeDelete(Word.Range DeletedRange, Word.XMLNode
OldXMLNode, bool InUndoRedo)
{
if (!InUndoRedo)
{
Thread undoThread = new Thread(new ThreadStart(this.undodelete));
undoThread.Start();
}
}

The problem occurs when there are many xml tags within revision bubbles. If
the user clicks "Accept All Changes", it runs this event for every xml tag
inside a revision bubble, and the code causes Word to hang for ever.

Is there a way to cancel the delete event, or halt execution of the "Accept
All Changes"?

Thank you
 

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