Hi,
I create my wordfiles by inserting html code.
By using this code, i can parse my footnotes from the html:
doc.Range.Replace(new Regex(@"someregex"), new ReplaceEvaluator(ReplaceFootnote), false);
private static ReplaceAction ReplaceFootnote(object sender, ReplaceEvaluatorArgs e)
{
DocumentBuilder builder = new DocumentBuilder((Document)e.MatchNode.Document);
builder.MoveTo(e.MatchNode);
Footnote footnote = new Footnote(builder.Document, FootnoteType.Footnote);
builder.CurrentParagraph.AppendChild(footnote);
footnote.Paragraphs.Add(new Paragraph(builder.Document));
footnote.FirstParagraph.Runs.Add(new Run(builder.Document, e.Match.Groups[1].Value));
e.Replacement = "";
return ReplaceAction.Replace;
}
The footnotes are appearing almost correctly, only the numbers in footnote itself doesn’t appear. But they do appear in paragraph text.
So, does somebody know how i can show the footnote numbers before the footnote at the bottom of the page ?
Thanks