<cfparam name="attributes.debug" default="false">
<cfparam name="attributes.executeAbort" default="true">
<cfparam name="attributes.title" default="">
<cfparam name="attributes.filters" default="">
<cfparam name="attributes.gridlines" default="false">
<cfif attributes.debug EQ "false">
<cfsetting showdebugoutput="no">
<cfelse>
<cfsetting showdebugoutput="yes">
</cfif>
<!--- Usage & Definitions ---
**************************************
Usage
**************************************
Example: <cf_excel_xml
filename="testing"
sheets="2"
query1="#test1#"
collist1="userid,login,browser,logincount"
colwidths1="50,100,150,50"
headerlist1="Userid,Last Login,Browser,Login Count"
query2="#test2#"
stringflds2="emplid"
dateflds2="login">
The only required field is query1 which is a query result. Note that it is passed as the name of the query inside the # signs.
The following are the attributes that apply to the entire entire workbook.
filename The name of the Excel file you want to generate. It is used in the CFHEADER tag. Default is "export".
author The name of the person creating the file. Default is "CF_Excel_XML".
sheets The number of spreadsheets. Default is 1.
headerbgcolor The background color of the header row. Default is "#C0C0C0", a light grey.
headerboldtext Yes/No. Determines whether the header text is in bold text or not. Default is "Yes".
row1bgcolor The background color of the odd rows in the query results. Default is "#FFFFFF", white.
row2bgcolor The background color of the even rows in the query results. Default is "#FFFFCC", a light yellow.
debug Yes/No. Setting to Yes turns off the Excel conversion so you can view the output and any errors you are getting. Default is "No".
The following are the attributes that apply to a particular spreadsheet. As in the example above, for each spreadsheet you
increment the attributes's numeric suffix by one.
query1 The query to display. it...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.