Delete everything in a bookmark range

L

lennert.acke

Hi

I program Word from .NET

There is a bookmark defined in a template that covers some text, a page
break and a table. They are all in the bookmark range.

Depending on a condition, everything covered by the bookmark should be
excluded or not. The following line of code does however not do the
trick:

this.oWordDoc.Bookmarks.Item(ref oBookmark).Range.Text = "";

Does anyone know how I can resolve this ?

Any help appreciated.
 
Top