Solved

How to Use MS Excel and Delphi 4

Posted on 1999-01-19
3
136 Views
Last Modified: 2010-04-06
If i make an BDE alias, which is pointing to an MyBook.xls
How can i use it(MyBook.xls) in Delphi for database.
I get stuck when i'm supposed to give a table name (property of TTable object)
0
Comment
Question by:K_David
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
inthe earned 10 total points
ID: 1362453
Excel files will not appear in the TTable.TableName property
drop-down so to work around this you have to enter the worksheet file name with no extension followed by a $ in the TableName property.
You can also add a cell range. example MyBook$A2:F1000
To read all of the rows in the worksheet when specifying a cell range make the ending row number larger than the last possible row.
Regards Barry
0
 

Author Comment

by:K_David
ID: 1362454
If i use that, then GetFieldName will work propperly (can i read/write to this cell range?)
Thanx

0
 
LVL 17

Expert Comment

by:inthe
ID: 1362455
hi,
to be honest i am not sure but i dont see why not .i had to do a bit of digging to get the answer for you as i dont know much on using excel like this.i only got the above from a teamb member and that was all i could find
Regards Barry
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question