Riversidos
Technical User
I have a way to create an Excel Spreadsheet from a query result but how would I create a Word Document from a query result?
Code:
<cfsetting enablecfoutputonly="Yes">
<cfheader name="Content-Disposition" value="inline; filename=xs.xls">
<cfcontent type="application/msexcel" file="xs.xls">
<cfoutput>
<table cols="4">
<cfloop query="QryGetQueryList">
<tr>
<td>#QryGetQueryList.Company#</td>
<td>#QryGetQueryList.Country#</td>
<td>#QryGetQueryList.State#</td>
</tr>
</cfloop>
</table>
</cfoutput>