我有一个从ColdFusion数据导出的Excel过滤器。我的问题是我们可以选择移动U&使用ColdFusion在列B左侧的V列单元格。这是我的代码:
<cfheader name="Content-Disposition" value="attachment; filename=Reporting.xls">
<cfcontent type="application/vnd.ms-excel">
<table cellspacing="1" border="0">
<thead>
<tr>
<th colspan="3" style="border-style:none;"> </th>
<th class="cellSpacer"> </th>
<th colspan="7" class="colorHeader">Major Maintenance Expenditure ($k)</th>
<th class="cellSpacer"> </th>
<th colspan="7" class="colorHeader">Capital Expenditure ($k)</th>
<th class="cellSpacer"> </th>
<th colspan="7" class="colorHeader">Asset Retirement Obligations ($k)</th>
<th class="cellSpacer"> </th>
<th colspan="7" class="colorHeader">Environmental Liability ($k)</th>
<th class="cellSpacer"> </th>
</tr>
<cfoutput query="Myqry">
<tr>
<td>#Myquery.columns1#</td>
</tr>
</cfoutput>
</table>
答案 0 :(得分:-1)
我建议查看&lt; cfspreadsheet&gt; https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-r-s/cfspreadsheet.html