Use the <cfobject> tag of coldfusion to create the
below objects of word application (you should have Microsoft word
installed in your cf server).
Word.Application
Word.Document
Word.MailMerge
Then you can follow the same steps how you do a VB program to
create the Word MailMerge in ColdFusion. A sample vb code is give
below,
Dim oWordApp As New Word.Application
Dim WrdDoc As Word.Document
Dim wrdMailMerge As Word.MailMerge
Set WrdDoc = oWordApp.Documents.Open("template path",
ReadOnly:=True)
Set wrdMailMerge = WrdDoc.MailMerge
wrdMailMerge.OpenDataSource Name:="file path",
Format:="format", ConfirmConversions:=True
wrdMailMerge.Destination = wdSendToNewDocument
wrdMailMerge.Execute
oWordApp.ActiveDocument.SaveAs FileName:="full path &
name", FileFormat:="format"
Set oWordApp = Nothing