WPCubed Product Support

InputFootNote WPTools6 premium BuilderC++

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

#1 ♥ 0
5.2k Views 1 links 3 users read 2 min
support

Hi,

Better not mix low level TParagraph and high level routnes, such as InsertFootNote.

You probably need

WPRichText1->InputText("balbla");
WPRichText1->InputFootnote(false, true, "footnotetext");

The first code snippit does not make sense to me - if you want to go to end of current paragraph use ActivePosInPar = ActiveParagraph->CharCount;

bb

#2 ♥ 0

Thanks that's help me

But now I have another problem, it's when I set my doc on 2 column (or 3) if I put a footnote (using inputfootnote) in the first column that's work with no problem, but if I put it in the second (or third) column the content of the footnote is insert on the text.

What do you think I have to do?

aa

#3 ♥ 0

I try with the demo TextBoxDemo (WPTools\Demos\PremiumDemo\Start) to insert footnote in the text after setting my doc on 2 column and it doesn't work any idea?

#4 ♥ 0
support

aa,

footnotes and columns do not work togethre, this is because of the top down approach used by the format routine.

bb

#5 ♥ 0

Hello,

I have the same problem, see RTF file in WPTools : My file.

Does it exist today for a solution to overcome the problem?
Do you plan an update to correct this problem WPTools?

Best,

Yannick

#6 ♥ 0
This category is archived. No new posts are possible.