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 

TADOdataset - create new worksheet in an excel file

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (ADO)
View previous topic :: View next topic  
Author Message
Vishal Khandelwal
Guest





PostPosted: Thu Feb 24, 2005 11:23 am    Post subject: TADOdataset - create new worksheet in an excel file Reply with quote



Hi,

I use TADOdataset to access the information stored in my excel file. Is it
possible to create a new worksheet and assign names to its columns (i.e.
store info in the first row of column)?, typically a "create table" types.
I am able to insert/update values in a worksheet in an excel file through
Edit() and Insert()/Append() respectively.

Thank and Regards,
Vishal



Back to top
Vishal Khandelwal
Guest





PostPosted: Thu Feb 24, 2005 1:36 pm    Post subject: Re: TADOdataset - create new worksheet in an excel file Reply with quote



i was able to create a worksheet by
After connecting to excel file, try to execute (call ADOConnection::Execute
for every line)


CREATE TABLE [MySheet] (Col1 Int, Col2 VarChar(20))
(this is from some previous postings)

http://groups-beta.google.com/group/borland.public.cppbuilder.database.ado/browse_thread/thread/84d0342e6b56816d/17807e1b93dfe565?q=cppbuilder+ado+Excel&_done=%2Fgroups%3Fq%3Dcppbuilder+ado+Excel%26&_doneTitle=Back+to+Search&&d#17807e1b93dfe565

Thanks and Regards,

Vishal

"Vishal Khandelwal" <vishal_khandelwal (AT) persistent (DOT) co.in> wrote

Quote:
Hi,

I use TADOdataset to access the information stored in my excel file. Is
it
possible to create a new worksheet and assign names to its columns (i.e.
store info in the first row of column)?, typically a "create table"
types.
I am able to insert/update values in a worksheet in an excel file through
Edit() and Insert()/Append() respectively.

Thank and Regards,
Vishal






Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (ADO) 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.