Ignore header and footer on document load

I would like to load a number of documents into one document. In each case I would like to only load the text and totally ignore the headers and footers.
Many thanks, Paul.

Hello

Thanks for your request. I think in this case you can try using the following code:

// Open Documents
Document dstDoc = new Document("dst.doc");
Document srcDoc = new Document("src.doc");
// Clear HeadersFooters
foreach(Section sect in srcDoc.Sections)
{
    sect.HeadersFooters.Clear();
}
// Insert srcDoc to dstDoc
dstDoc.AppendDocument(srcDoc, ImportFormatMode.KeepSourceFormatting);
// Save output document
dstDoc.Save("out.doc");

Best regards,