Footnotes overlaying Page Footer

This is a known bug in Word (http://support.microsoft.com/default.aspx?scid=kb;en-us;158625)

Their workaround recommendation is to place the insertion point after the footnote text, and press ENTER to add one or more blank lines (paragraphs).

My question is:

1. How do I determine if there are footnotes in the document

2. How to retrieve said footnotes

3. How to add blank lines

Thanks.

Here is a sample code:

// open document

string filename = Application.StartupPath + "\\doc1.doc";

Document doc = new Document(filename);

// get collection of footnote objects from the document

NodeCollection footnotes = doc.GetChildNodes(NodeType.Footnote, true);

// show number of footnotes in a document in a MessageBox

MessageBox.Show(String.Format("Document contains {0} footnotes", footnotes.Count));

foreach(Footnote footnote in footnotes) {

// add three empty lines (paragraphs)

footnote.Paragraphs.Add(new Paragraph(doc));

footnote.Paragraphs.Add(new Paragraph(doc));

footnote.Paragraphs.Add(new Paragraph(doc));

}

// save modified document as 'doc1_modified.doc'

doc.Save(System.IO.Path.GetFileNameWithoutExtension(filename) + "_modified.doc");