PC Review


Reply
Thread Tools Rate Thread

copy xls cells info into structure

 
 
Eran.Yasso@gmail.com
Guest
Posts: n/a
 
      18th Dec 2006
Hi,

I have a structure which has 4 memebers.
I also have xls file which has 4 columns and x rows.
I need to copy each column to a member in the struct.
After that to add the struct to the stack and copy the next row.

I already knows how to insert to stack. all i need to know is how to
copy cells contetnt one by one and put it in struct members.

Writing to xls file would be great also.

TIA.

 
Reply With Quote
 
 
 
 
Eran.Yasso@gmail.com
Guest
Posts: n/a
 
      18th Dec 2006

Ciaran O''Donnell wrote:
> You will need to look at Excel control through COM Automation. put this into
> google and you'll get good samples. This is only for client applications
> where excel is allowed to be made visible. If its for server side processing
> then you need to get a 3rd party component for reading the xl file format or
> get the user to save it to csv, them use a normal stream.
>
>
> --
> Ciaran O''''Donnell
> http://wannabedeveloper.spaces.live.com
>
>
> "(E-Mail Removed)" wrote:
>
> > Hi,
> >
> > I have a structure which has 4 memebers.
> > I also have xls file which has 4 columns and x rows.
> > I need to copy each column to a member in the struct.
> > After that to add the struct to the stack and copy the next row.
> >
> > I already knows how to insert to stack. all i need to know is how to
> > copy cells contetnt one by one and put it in struct members.
> >
> > Writing to xls file would be great also.
> >
> > TIA.
> >
> >


I don't excel to be visible. I need it to be invisible. I copy from and
to gridview.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel VBA - copy csv info to specific cells Vince Bowman Microsoft Excel Programming 4 23rd Dec 2009 01:10 AM
Copy info into empty cells below info, until finds cell with new d Fat Jack Utah Microsoft Excel Misc 3 16th Nov 2008 08:34 PM
how do i copy and fill down duplicate info in cells trisha Microsoft Access Getting Started 2 4th Feb 2008 10:05 PM
Copy table structure info john Microsoft Access 4 5th Jan 2008 01:50 PM
Copy cells with certain info =?Utf-8?B?RGF3bg==?= Microsoft Excel Programming 5 10th Dec 2004 12:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:08 PM.