RE: querying an xls file
Go to http://www.cfcomet.com/cfcomet/excel/ and check out the -- Use Excel files as datasources -- basic to advanced section. -Original Message- From: John McCosker [mailto:[EMAIL PROTECTED]] Sent: 18 April 2002 10:08 To: CF-Talk Subject: querying an xls file Greetings, could anyone advice me what would be the best way to extract data from, an excel xls file, I want to extract each column from each row and insert it into a DSN. I've done something similar before with a txt file, I used CFFILE READ, gave it a variable name looped through the varname and extracted my data using CFSET newLine=Chr(13) Chr(10) as the loop delimeter, but I think xls is slightly different format. Could there possibly be a custom tag for this, any advice would be greatly appreciated, Respectfully, J __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: querying an xls file
Thanks a million Declan, this is perfect, J -Original Message- From: Declan Maher [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 10:24 AM To: CF-Talk Subject: RE: querying an xls file Go to http://www.cfcomet.com/cfcomet/excel/ and check out the -- Use Excel files as datasources -- basic to advanced section. -Original Message- From: John McCosker [mailto:[EMAIL PROTECTED]] Sent: 18 April 2002 10:08 To: CF-Talk Subject: querying an xls file Greetings, could anyone advice me what would be the best way to extract data from, an excel xls file, I want to extract each column from each row and insert it into a DSN. I've done something similar before with a txt file, I used CFFILE READ, gave it a variable name looped through the varname and extracted my data using CFSET newLine=Chr(13) Chr(10) as the loop delimeter, but I think xls is slightly different format. Could there possibly be a custom tag for this, any advice would be greatly appreciated, Respectfully, J __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: querying an xls file
Hi, If u need to extract data from an Excel sheet , you need not use CFFILE, you can directly use excel as an ODBC datasource You can go the CFIDE administration page, ODBC datasource and create a DSN using the Microsoft Excel Driver and then access it in the same way as u access any other database Regards, Dimple -Original Message- From: John McCosker [SMTP:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 2:38 PM To: CF-Talk Subject: querying an xls file Greetings, could anyone advice me what would be the best way to extract data from, an excel xls file, I want to extract each column from each row and insert it into a DSN. I've done something similar before with a txt file, I used CFFILE READ, gave it a variable name looped through the varname and extracted my data using CFSET newLine=Chr(13) Chr(10) as the loop delimeter, but I think xls is slightly different format. Could there possibly be a custom tag for this, any advice would be greatly appreciated, Respectfully, J __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists