We help IT Professionals succeed at work.

Cold Fusion Query to excel

Last Modified: 2013-12-16
Hello!! When running a coldfusion query I need to download this report in an excel format. Please help!!! The problem I found with a recommeded code is that my hosting has disabled cfcontent and cffile, thus I must use other cold fusion tags. Thanks in advance.. Roberto
Watch Question

Would this help?

halfway down on the page - Query to Excel CFC (2Kb) - http://www.fastsoftwaresolutions.com/go/fss/downloads.shtml



Thanks a lot!! However, when trying your code it says
"An unexpected system error was detected. (Error code is 4294934528)" This type of error will most likely occur when the server running ColdFusion is low on memory and/or system resources.
If you continue to experience this error in a reproducible fashion you should contact Allaire technical support. The error occurred while processing an element with a general identifier of (CFSCRIPT)".

There should be a simplier way to get a CF query into an excel spreadsheet. Thanks a lot. Roberto,

My previous question here on EE.
how to export from SQL query to excel - no 'COM' - objects please.

if you plan to use cfobject. theres a bug. im not sure if this has been fix. have no plans of
creating excel using cfobject.
cfobject with excel.application error - java.lang.NoSuchMethodException.

There's also a script from allaire.
code is encrypted but its easy to use.
Based on CF_Query2Excel, All_excel creates an Excel Spreadsheet from an SQL query <cfquery>.
This tag only requires the name of a query as a parameter passed to the tag.
It is possible to display or hiding the column headers and rename Column headers as well.  
Example 1
<cfquery name="GetEmployees" datasource="AnyDataSource">
     SELECT nm_first, nm_last, dob from EMPLOYEES

   Query = "GetEmployees"
   Headers= "First Name,Last Name,Date of Birth">

you can find this tag in macromedia.com.
You can search all free tags there. macromedia>downloads>exchange>cfc's


Thanks a lot!!!!! Roberto
This one is on us!
(Get your first solution completely free - no credit card required)


Thanks a lot

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.