I want to detect Empty paragraphs in Word Document using Microsoft.Office.Interop.Word. Suppose, if my word document have some empty paragraphs,then
Assume paragraph 3 is an empty paragraph...
Microsoft.Office.Interop.Word.Paragraph para = wordDoc.Content.Paragraphs[3];
int cSent = para.Range.Sentences.Count;
for (int j = 1; j <= cSent; j++)
{
Microsoft.Office.Interop.Word.Range sent = para.Range.Sentences[j];
MessageBox.Show("Sent lines :" + sent.Text.ToString());
}
Then empty paragraphs has taken the last sentence of the last non-empty paragraph.So, I can't able to detect empty paragraphs in my Word Document.
Is there a way to get Empty paragraph list?
Please Guide me to Get out of this problem...