473,406 Members | 2,954 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,406 software developers and data experts.

Getting info from excel.

I'm displaying an Excel spreadsheet using a data gird control in a
winform using oleDB objects and so far Data is displaying correctly.

I'm having difficulties getting cell style information for each
cell in the xls file (Excel spreadsheet) .

Does anyone have an idea how to pull that information out from an xls
file?

Thanks.

May 3 '07 #1
3 2213
Falcon,

Because Excel can have separate styles for each cell, you will have to
get the Range for each cell and then check the appropriate style/formatting
properties on that.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Falcon" <ta*******@gmail.comwrote in message
news:11**********************@c35g2000hsg.googlegr oups.com...
I'm displaying an Excel spreadsheet using a data gird control in a
winform using oleDB objects and so far Data is displaying correctly.

I'm having difficulties getting cell style information for each
cell in the xls file (Excel spreadsheet) .

Does anyone have an idea how to pull that information out from an xls
file?

Thanks.

May 3 '07 #2
Thanks for replying:
No,
it dosn't,
How do I get the range for each cell?

May 4 '07 #3
On May 3, 2:44 am, Falcon <talera...@gmail.comwrote:
I'm displaying an Excelspreadsheetusing a data gird control in a
winform using oleDB objects and so far Data is displaying correctly.

I'm having difficulties getting cell style information for each
cell in the xls file (Excelspreadsheet) .

Does anyone have an idea how to pull that information out from an xls
file?

Thanks.
Falcon,

I would like to also suggest using a 3rd party grid/spreadsheet
control, like the FarPoint Spread for Windows or FarPoint Spread for
Web Forms product. With this Spread control, all you have to do is to
call one line of code (OperExcel) and pass in the filename and the
control will load all the data, formulas, and styles for one sheet or
all the sheets of the Excel workbook.

Scott Shorter

May 6 '07 #4

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

Similar topics

6
by: EMW | last post by:
The MSDN is a great source of information for programmers of .NET applications, but not for the simple things!!!! I have been searching for a few days now, my desk is filled with printouts from...
8
by: Catherine Jo Morgan | last post by:
Some columns in the excel contact info spreadsheet correspond exactly with the new database fields. Three columns contain a mishmash of info that will need to be entered manually in the correct...
2
by: BlackFireNova | last post by:
I have an Access 2003 mdb which contains software records. I need to sort on a particular type of software, and then identify and count how many copies there are per each group of that type...
2
by: Michael Sanford | last post by:
I'm getting a Sysmte.IO.FileNotFoundException when executing the code below. It is straight from the example. This works on one machine, but not the other. Other benign calls invoke the same...
2
by: Henrik | last post by:
Hi all, I'm working with a win app in vb that needs access to actual process id of the office-applications Word, Excel and PowerPoint. I know I can loop the processes and check for processes of...
2
by: Robert Dyke | last post by:
Hey ... I've got about 500 Excel files with data stored in them in tabular format ... (my coworker used excel as a database). I want to write a vb6 program that will open up these files and get...
1
by: sethnkendall | last post by:
Hi, I am writing a COM add-in for Excel using c#. Everything works fine, but I am trying to get the some finishing touches sorted out and one of them is bugging me and I cannot see anything...
2
by: tbramley | last post by:
Hi, I've been trying to import a spreadsheet from excel into access but the way it is downloaded from the site we use to review our performance some cells are like the following: The cell shows...
4
Shakss2
by: Shakss2 | last post by:
Hello all, I have a table name "info" which looks like, ProjectID Consultantname 1 Alpha 1 Beta 1 Charlie 2 James 2 ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.