How to create Microsoft Word document in ColdFusion

cfcontent application/msword - create Microsoft Word document


<!DOCTYPE html>

<html xmlns="">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>cfcontent application/msword - how to create Microsoft Word document  in coldfusion</title>

<h2 style="color:DarkSeaGreen; font-style:italic">cfcontent tag example: how to create Microsoft Word document</h2>
<hr width="625" align="left" color="DarkSeaGreen" />
<br />

<a href="cfcontentMSWord1.cfm">Click Here To Get Authors List In A MSWord File</a>



<cfquery name="authors" datasource="cfbookclub">
 select FirstName, LastName from authors

<cfcontent type="application/msword" reset="yes">
Authors Name
<cfoutput query="authors">
 #LastName# #FirstName#