<cfimport taglib="./poi/" prefix="poi" />
<poi:document
name="REQUEST.ExcelData"
file="#ExpandPath( './incomes.xls' )#"
style="font-family: verdana ; font-size: 10pt ; color: black ; white-space: nowrap ;">
<poi:classes>
<poi:class
name="title"
style="font-family: arial ; color: white ; background-color: green ; font-size: 18pt ; text-align: center ;"
/>
<poi:class
name="header"
style="font-family: arial ; background-color: lime ; color: white ; font-size: 14pt ; border-bottom: solid 3px green ; border-top: 2px solid white ;"
/>
<poi:class
name="footer"
style="background-color: red ; color: white ; border-top: 3px solid black ;"
/>
</poi:classes>
<poi:sheets>
<poi:sheet name="Incomes">
<poi:columns>
<poi:column style="width: 150px ;" />
<poi:column style="width: 150px ;" />
</poi:columns>
<poi:row class="title">
<poi:cell value="Yearly Incomes" colspan="2" />
</poi:row>
<poi:row class="header">
<poi:cell value="Name" />
<poi:cell value="Income" />
</poi:row>
<poi:row>
<poi:cell value="Katie" />
<poi:cell value="35000" type="numeric" numberformat="0.00" alias="StartSum" />
</poi:row>
<poi:row>
<poi:cell value="Allison" />
<poi:cell value="72500" type="numeric" numberformat="0.00" />
</poi:row>
<poi:row>
<poi:cell value="Libby" />
<poi:cell value="57000" type="numeric" numberformat="0.00" />
</poi:row>
<poi:row>
<poi:cell value="Kit" />
<poi:cell value="110000" type="numeric" numberformat="0.00" />
</poi:row>
<poi:row>
<poi:cell value="Anna" />
<poi:cell value="63000" type="numeric" numberformat="0.00" alias="EndSum" />
</poi:row>
<poi:row class="footer">
<poi:cell value=" " />
<poi:cell value="SUM( @StartSum:@EndSum )" type="formula" numberformat="0.00" />
</poi:row>
</poi:sheet>
</poi:sheets>
</poi:document>
<cfheader
name="content-disposition"
value="attachment; filename=incomes.xls"
/>
<cfheader
name="content-length"
value="#REQUEST.ExcelData.Size()#"
/>
<cfcontent
type="application/excel"
variable="#REQUEST.ExcelData.ToByteArray()#"
/>