WPCubed Product Support

Footnote text ?

Hi;

I can find footnote object at CPPosition witn FootnoteAtCP. But I can't see how to retrieve the text. I tried using EmbeddedText and GetText but I get empty string.

Is there a property to get/set Footnote text?.

Thank you.

Felipe

#1 ♥ 0
4.7k Views 2 users read 1 min
support

Hi,

You need to locate the layer which is used for that footnote object. The layers are stored in WPRichText.HeaderFooter and the funtion to locate one is Get or Find.

QuickNDirty Demo:

ShowMessage(
    WPRichText1.HeaderFooter.Get(  wpIsFootnote, // for textboxes use: wpIsOwnerSelected,
        wpraOnAllPages, WPRichText1.CPObj.Name ).RtfText.AsANSIString('ANSI')
        );
#2 ♥ 0

Hi;

Fine, it works to get the footnote value; now I try to change that value with a new one, but as I see on the manual this RTFTEXT object does not expose a property or method to set it as an ansi string. "AsString" seems to be rtf format.

How do I set it?

Felipe

#3 ♥ 0
support

Hi,

You can first clear it and the use FirstPar.SetText to set ANSI text directly into the paragraph.

Julian

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