473,387 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

copy xls cells info into structure

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.

Dec 18 '06 #1
1 1560

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
"Er********@gmail.com" 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.

Dec 18 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Laurey | last post by:
ok.. subject may not have been clear. I have an array that is being split - each line into 2 areas. Those 2 areas of each line will take up one table cell, i.e.: <TD>$item1 $item2</TD> So...
3
by: Faith | last post by:
Hello. I need to take a column from Excel(unknown amount of rows) that will be selected by the user and copy those cells. Then I will need to paste those cells into the first column in a Data...
4
by: Stephan Tobies | last post by:
Hi everyone, I am looking for a good data structure that could be used to represent families of trees with shared sub-trees and copy-on-write semantics. On a very abstract level, I would like...
0
by: Carlos Lozano | last post by:
Hi, I have an application that creates Excel files and I ma having trouble formatting cells. I fill all cells required, sewt fonts and everything, but have a cell that contains multiple text...
1
by: dd | last post by:
Hi, I'm porting some matlab programs to C and wonder wether someone has tried to use C to realize some data structure like cells in Matlab? I used ***p to realize cells that are like k*m*n,...
2
by: michael sorens | last post by:
I tried to do a simple operation on a Windows Form in VS2005 inside a key_down handler: if (e.Control && e.Shift && e.KeyCode == Keys.V) { int selectedRowIndex =...
3
by: usman | last post by:
Hi I have a windows service that backups a folder onto another location on the same computer. The service is written in C#. The size of the original folder is large i.e. over 8 GB. Also the...
4
by: JDVOIGT | last post by:
I am building a P&L on worksheet(1) based on data from worksheet(2). I need to copy rows of data from worksheet(2) and paste onto worksheet(1). The pasting process needs to find a named range (one...
0
by: damiencarr | last post by:
i have a spreadsheet/worksheet called "NTH_Alliance" containing rows of related data grouped together under different headings, that are named as different weeks (e.g. Week 5 (26/01/2009 -...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.