Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel spreadsheet as a datasource for ColdFusion.

Status
Not open for further replies.

apirri

Programmer
Jan 25, 2001
1
US
I am trying to use an Excel spreadsheet as a datasource for a form in ColdFusion. Can someone tell me how I can do that.
 
There is an excel odbc driver that should allow you to connect to your excel spreadsheet. Everything I've read though tends to discourage doing this as it seems that people usually have trouble with it. The best approach is to convert your excel spreadsheet to Access and connect to it through the access odbc driver.

If you must connect directly to the spreadsheet though, I would try using the excel odbc driver first although there may be some alternatives such as using DDE through com.

GJ
 
i've seen an app that was using the <CFOBJECT> tag to retrieve info from an excel sheet
that was working fine
 
It is simple.

the query is something like

<CFQUERY NAME= &quot;GetData&quot; DATASOURCE= &quot;data&quot;>
SELECT *
FROM `worksheetinexcel$`
</CFQUERY>

The FROM is the big difference to a call on an ACCESS DB.
the worksheetinexcel is a worksheet in your spreadsheet.

then you treat the rest of the code the same.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top