Save merged rtf file from aditor to rtf, with merged values

  • Hello,

    I use the TextDynamic.Net rtf editor to creat an rtf document. In it, I create some merge fields.
    Can I do a merge now, and save the merged result into a new rtf file. So where the mergefields are replace by textual data?

    Thanks,
    Koob

    • Offizieller Beitrag

    Hi,

    The variables were NOT replaced with the data. The data was inserted inside. This means usually You can merge agaian and insert different data.

    If you want to delete the fields (and keep the merged data) save to a file and specify the format option "-nomergefields".

    Julian

  • This works when I use the code below.
    Note that the possibility to use this option is not in the table for formattingstrings that is in the manual.

    Private Function SaveRtfFile() As Boolean
    Const OptionsString As String = "AUTO-nomergefields"
    Return WP.Memo.SaveToFile(_rtfFileName + "new.rtf", False, OptionsString) 'TODO: use correct file name
    End Function

    Thanks,
    Koob