Deleting range of text using C#

A

agraashish

Hi All,
I want to read a word docment using C# and then I want to delete some
specifiec region of text lying between two sub headings.

For instance:
1.1 Description
This is the first part that has to be deleted.

1.2 Design
This is the second part that has to be deleted..

1.3 Product
This is the third secttion and it is to remain as it is.

My requirement is to delete all the text that is present in 1.1 section as
well as the one present in 1.2 but I am unable to do so_One more problem is
that the sections may not be continuous ie in certain cases I want to delete
only text of section 1.1 and then that of 1.3.
I know this can be performed RANGE but I am not able to select it
correctly.Please guid me how can I achive my objective.
 

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