Quantcast
Channel: Open XML Format SDK forum
Viewing all articles
Browse latest Browse all 1288

Open XML SDK, how to delete the pages when I find a certain line in the doc file

$
0
0

Hi,

I am using  Open XML SDK in my C#.NET project and here is what I want to do. First, I need to find a line where is for example written this: "REMOVE THE PAGES BEHIND". When I find that page I need to literally delete pages behind that line. Here is the example:

-----------

Page 1

           ...content....

-----------

Page 2

           ...content....

----------

Page 3

           REMOVE THE PAGES BEHIND

           ...content....

---------

Page 4

---------

So, I need to delete first two pages and leave the rest. I found article which explains how to delete the file, but is there some way to find that line?

Thank you in advance.



Viewing all articles
Browse latest Browse all 1288

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>