ColdFusion导出到Excel

时间:2018-06-12 19:30:52

标签: coldfusion

我有一个从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;">&nbsp;</th>
                <th class="cellSpacer">&nbsp;</th>
                <th colspan="7" class="colorHeader">Major Maintenance Expenditure ($k)</th>
                <th class="cellSpacer">&nbsp;</th>
                <th colspan="7" class="colorHeader">Capital Expenditure ($k)</th>
                <th class="cellSpacer">&nbsp;</th>
                <th colspan="7" class="colorHeader">Asset Retirement Obligations ($k)</th>
                <th class="cellSpacer">&nbsp;</th>
                <th colspan="7" class="colorHeader">Environmental Liability ($k)</th>
                <th class="cellSpacer">&nbsp;</th>

            </tr>
<cfoutput query="Myqry">
           <tr>
               <td>#Myquery.columns1#</td>
           </tr>
</cfoutput>
</table>

1 个答案:

答案 0 :(得分:-1)