OK, I need to do some Word automation, and in particular, to build in my app a database that will be passed into Word for MailMerge. This is not something I have ever approached before. If anyone has some hot tips on components, and/or whether and to what extent MailMerge automation is possible, I would appreciate it.

Comments

  1. Dany Marmur Send to meyer.wil at gmail.com.  Thanks!!

    ReplyDelete
  2. Bill Meyer If you want to do everythinf in Delphi, I would suggest to create a Word form not using mail merge fields but using "content controls" which are easy to manipulate programmatically (Find and set content). Then loop thru your Delphi dataset to fill all the content controls and save the file with the file name you need and then send it where it has to be sent using your favorite Delphi component.

    ReplyDelete
  3. François Piette  Thanks, but I think the solution of choice may be to just export a CSV dataset, then invoke Word with one of a short list of pre-built documents, and let the users fiddle with it from there.

    ReplyDelete

Post a Comment