WPT of TWPTextObj

  • How can i extract the Text of a TWPTextObj?

    I am useing the event DoEditFieldFocus for info if the user leaves a mailmerge field.
    In this event i would like to store the WPT Text of the Field-
    But i only get the plain Text, which is useless for me.

    Is there a somewhere aworkaround to get this?

    regards
    andreas

    • Offizieller Beitrag

    Hi,

    the property EmbeddedText will read the text which is eclosed by two TWPTextObj, such as mail merge fields. There is no property to red the text as RTF.

    I recommend to use the MailMerge event OnMailMergeGetText to read the text of the field using the property Contents.OldFormattedText.

    Julian