BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is possible connect to Excel as TTable?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop)
View previous topic :: View next topic  
Author Message
John
Guest





PostPosted: Fri May 21, 2004 6:04 pm    Post subject: Is possible connect to Excel as TTable? Reply with quote



How can I easily connect to an excel table (can be read only)? I need to
extract all the data from a spreadsheet into another database - am doing
this now by importing the excel spreadsheet into MS Access - then connecting
via TTable within my application. Would love to get rid of that import step
and just connect directly to the spreadsheet.

thanks


Back to top
Wayne Niddery [TeamB]
Guest





PostPosted: Fri May 21, 2004 6:48 pm    Post subject: Re: Is possible connect to Excel as TTable? Reply with quote



John wrote:
Quote:
How can I easily connect to an excel table (can be read only)? I need
to extract all the data from a spreadsheet into another database - am
doing this now by importing the excel spreadsheet into MS Access -
then connecting via TTable within my application. Would love to get
rid of that import step and just connect directly to the spreadsheet.

If you have Excel on your system then there should also already be an ODBC
driver for Excel that you can attach via the BDE and a TTable.

--
Wayne Niddery - Logic Fundamentals, Inc. (www.logicfundamentals.com)
RADBooks: http://www.logicfundamentals.com/RADBooks.html
"True peace is not the absence of tension, but the presence of
justice." - Martin Luther King, Jr.



Back to top
Rick Carter
Guest





PostPosted: Mon May 24, 2004 9:50 pm    Post subject: Re: Is possible connect to Excel as TTable? Reply with quote



Quote:
How can I easily connect to an excel table (can be read only)? I need to
extract all the data from a spreadsheet into another database - am doing
this now by importing the excel spreadsheet into MS Access - then
connecting
via TTable within my application. Would love to get rid of that import
step
and just connect directly to the spreadsheet.

Yet another alternative would be to do a "save as" in Excel to save in
dBASE III+ or dBASE IV (.dbf) format. Then you could continue to edit
it directly in Excel, but you could also easily open it using the BDE or
any of a number of other database engines.

Rick Carter
[email]carterrk (AT) despammed (DOT) com[/email]
Chair, Delphi/Paradox SIG, Cincinnati PC Users Group

--- posted by geoForum on http://delphi.newswhat.com

Back to top
Mike Shkolnik
Guest





PostPosted: Tue May 25, 2004 5:12 am    Post subject: Re: Is possible connect to Excel as TTable? Reply with quote

Rick,

Quote:
Yet another alternative would be to do a "save as" in Excel to save in
dBASE III+ or dBASE IV (.dbf) format.
This way is good only for english characters. Problem that MS Excel use the

old DOS encoding for dBase tables but 99% developers now uses the Windows
encoding (ANSI).

--
With best regards, Mike Shkolnik
E-mail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
WEB: http://www.scalabium.com



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.