Answered
Table structure to Excel
How can i send the below table and code to a Excel sheet?
Tried some things but isn't really working...
Thanks.
<h2>Polling statistics: #stprops_pollingdata.question#</h2>
<table border="1" cellpadding="1" cellspacing="2">
<tr>
<th>Date / Time created</th>
<th>Question</th>
<cfloop index="i" from="1" to="#application['wsoFarcryPolling' & pollingid]#">
<cfif stprops_pollingdata['answer' & i] GT 0>
<th>#stprops_pollingdata['answer' & i]#</th>
</cfif>
</cfloop>
<th>Total votes</th>
</tr>
<tr>
<td>#stprops_pollingdata.datetimecreated#</td>
<td>#stprops_pollingdata.question#</td>
<cfloop index="i" from="1" to="#application['wsoFarcryPolling' & pollingid]#">
<cfif stprops_pollingdata['answer' & i] GT 0>
<td>#sums .recordcount#</td>
</cfif>
</cfloop>
<td>#answers_sum#</td>
</tr>
</table>
Tried some things but isn't really working...
Thanks.
<h2>Polling statistics: #stprops_pollingdata.question#</h2>
<table border="1" cellpadding="1" cellspacing="2">
<tr>
<th>Date / Time created</th>
<th>Question</th>
<cfloop index="i" from="1" to="#application['wsoFarcryPolling' & pollingid]#">
<cfif stprops_pollingdata['answer' & i] GT 0>
<th>#stprops_pollingdata['answer' & i]#</th>
</cfif>
</cfloop>
<th>Total votes</th>
</tr>
<tr>
<td>#stprops_pollingdata.datetimecreated#</td>
<td>#stprops_pollingdata.question#</td>
<cfloop index="i" from="1" to="#application['wsoFarcryPolling' & pollingid]#">
<cfif stprops_pollingdata['answer' & i] GT 0>
<td>#sums .recordcount#</td>
</cfif>
</cfloop>
<td>#answers_sum#</td>
</tr>
</table>
