Hi,
TO extract the content of a document i used the following code snippet. (The purpose was to insert this to a new document, the particular code is commented here). The particular code is not reading the text from the body of the attached document. If i remove the page number from the document footer, the code works. Can you help me with this. Should i specifically go to the body section and read the text from there?
oStartBody = srcDoc.GetChild(NodeType.Paragraph, 0, true);
string csNodeText;
while (currentNode != null)
{
// paleceHolder.ParentNode.InsertBefore(m_oOutDoc.ImportNode(currentNode, true, ImportFormatMode.KeepSourceFormatting), paleceHolder);
csNodeText = currentNode.GetText();
currentNode = currentNode.NextSibling;
}
regards
Prasanth