Strange behavior with RTFVariables!

  • Hello:

    I load a few RTFVariables into a dialog box for my users to edit, then store them back into the document, however, the contents of the last one 'Company' actually shows up on the 1st page of the document!

    Any Ideas?

    Dale

    A code snippet is below:

    • Offizieller Beitrag

    A few variables are written differently:

    WPRtfWriteRTF:

    if (s = 'manager') or (s = 'company') or (s = 'category') or (s = 'hlinkbase') then
    s := '{\' + s + #32
    else s := '{\*\' + s + #32;


    this means in the RTF there is {\company ....}

    You can comment the code

    (* if (s = 'manager') or (s = 'company') or (s = 'category') or (s = 'hlinkbase') then
    s := '{\' + s + #32
    else *)

    and it should be ok ofr now.

    I check why the reader does not handle \company