I'm trying to insert some footnotes using the methode 'InputFootNote' at a given position
InsertFootNote( AnsiString text){ WPRichText1->CPPosition = WPRichText1->ActiveParagraph->Position() + WPRichText1->CPPar.Length(); WPRichText1->InputFootnote( text, Wprtepaint::TWPInputFootnoteModes(wpNumberInFootnoteIsSuperScript)); }
InsertText1(){ WPRichText1->ActiveParagraph->Append("blablablabla."); InsertFootNote("toto"); InsertFootNote("tata"); WPRichText1->ActiveParagraph->Append("blablablabla."); InsertFootNote("titi"); }
So calling InsertText1(), I excpect something like :
blablablabla.^1^2blablablabla.^3
But I got:
blablablabla.^1^2blablablabl^3a.
InsertText2(){
WPRichText1->ActiveParagraph->Append("blablablabla.\n");
InsertFootNote("toto");
WPRichText1->ActiveParagraph->Append(" ");
InsertFootNote("tata");
WPRichText1->ActiveParagraph->Append("blablablabla.");
InsertFootNote("titi");
}
This function insert on my WPRichText1 :
blablablabla.
^1^1 blablablabl^2a.
Instead of :
blablablabla.
^1 ^2blablablabla.^3
So I can't insert a space between two footNote
Any idea about what's going on?
Thank you
aa