943,847 Members | Top Members by Rank

Ad:
Jan 24th, 2009
0

reading excel in Delphi

Expand Post »
I'd like to read/write xls files in Delphi. I think there's a way to do this using ADO. Can anyone provide an example or head me in the right direction. Thanks.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
bob on whidbey is offline Offline
32 posts
since Oct 2007
Jan 25th, 2009
0

Re: reading excel in Delphi

Please use the search button as this has already been answered many times.
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
LizR is offline Offline
1,735 posts
since Aug 2008
Jan 27th, 2009
0

Re: reading excel in Delphi

as far as I know, for you to be able to read an excel document using delphi, you must first change your document's data type from .Xls to .Csv and open ur document like a textfile.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Jonase is offline Offline
3 posts
since Aug 2008
Jan 27th, 2009
0

Re: reading excel in Delphi

Totally untrue. You can read and write to excel. As I said, search the forum, there are a number of ways and code and so on within this forum
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
LizR is offline Offline
1,735 posts
since Aug 2008
Jan 27th, 2009
0

Re: reading excel in Delphi

Thank you Jonase. The CSV file approach, which is nicely supported by TStrngList, is one way. I was unable to discover how to use the Delphi components TExcelApplicatioin, TExcelWorkBook, etc.

Using the non-visual components of TXLSWorkbook turned out to be very straight forward. NativeExcel by NikaSoft seems to be well written and, more importantly, well documented with good samples.
Last edited by bob on whidbey; Jan 27th, 2009 at 12:09 pm.
Reputation Points: 10
Solved Threads: 0
Light Poster
bob on whidbey is offline Offline
32 posts
since Oct 2007
Jan 27th, 2009
0

Re: reading excel in Delphi

I guess you didnt look through the rest of the excel posts then
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
LizR is offline Offline
1,735 posts
since Aug 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Pascal and Delphi Forum Timeline: Delphi Program Help
Next Thread in Pascal and Delphi Forum Timeline: Starting to lean Pascal, got a problem and dunno how to fix it..





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC