MailMerge example using a StringGrid

  • Does anyone have an example code or ideas for doing a mail merge using a stringgrid for the data to merge rather than a database?

    I have a populated stringgrid, want to load a pre-made RTF, merge the cell data with references on the loaded RTF and then print it, and repeat for the next row.

    Thanks in advance for any help or insights.

    • Offizieller Beitrag

    Hi,

    Insetad of reading fields from a database you can read the text at row,column from the string grid. You need to to set the row counter to 0 at tzhe start and then have a loop for all the rows. That should be really straight forward.

    Julian