Remove certain graphics from mail merged document

  • Hi Julian!

    We store certain fixed graphics that are used for mail merging as BLOBs in the database. Our mail merge procedure is as follows:

    1. User chooses data source and mail merge template.
    2. Application executes mail merge and displays result in RTF editor.
    3. User can make manual changes to the text.
    4. Final document is saved in database.

    My problem is that I want to save the final document without the pictures that were mail merged. They are static and can be re-put in whenever it is needed. I don't want to waste space in the database.

    Therefore my question: how can I remove the mail merged graphics from the final RTF document? I know the names of the mail merge fields. Can I still reference the fields in the merged document? If so, can I then do the merge again but this time specify an empty object?

    How would you do it?

    Regards,

    Dirk.