I'm trying to go through a Word document and obtain all of the text. I use the method from the tutorial where I go through each section and then obtain every paragraph:
foreach (Section section in document.Sections)
{
foreach (Paragraph paragraph in section.Paragraphs)
{
sb.AppendLine(paragraph.Text);
}
}
the problem lies in that paragraph.Text does not return the list number next to the paragraph. It skips the list number entirely, for example when I want the paragraph.Text to say "1. SCOPE" it just returns "SCOPE". How do I get the numbered list to appear alongside the paragraph?