C# .NET - How to read and delete blank page in word using C#.net?

Asked By Mich on 21-Jun-10 01:44 AM
Hi All,

Is it possible to read the word document generated using MS Word Interop in C#.Net then locate the blank pages and Delete it?

Any help is greatly appreciated. Thank you.
Santhosh N replied to Mich on 21-Jun-10 02:05 AM

You could check this one which is explaining how to remove specific lines and blocks from ms word which might help you in identifying blank pages and remove


Mich replied to Santhosh N on 21-Jun-10 02:48 AM
Thank you so much for your prompt response. How about on how to detect a word document if it has blank details?
Santhosh N replied to Mich on 21-Jun-10 04:05 AM

Here is a discussion to check if the header and footer are same to find the way of empty page and you can check this one in your case..


Mich replied to Santhosh N on 28-Sep-10 01:09 AM
Hi, is there a way to read the generated word document and then detect the blank pages and delete it using MS Interop Word and C#.Net?