473,795 Members | 3,333 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2229
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.co m

"Falcon" <ta*******@gmai l.comwrote in message
news:11******** **************@ c35g2000hsg.goo glegroups.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...@gmai l.comwrote:
I'm displaying an Excelspreadshee tusing 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 (Excelspreadshe et) .

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
1301
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 books, help pages and web pages, but still cannot find what I'm looking for. I'm trying to write a little program, to practice VB.NET, to convert a table from EXCEL to an ACCESS DATABASE. I managed to find some examples on how to create a...
8
4883
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 database fields. Maybe I could make a form to use for this, to use to hold and view the information from the three excel fields, as well as to copy and paste the info into the correct database field? Or is there a better way? I'm still designing...
2
2304
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 purchased on the same date. I have no trouble doing a query to extract the type (say MS Excel 2002, for example). The trouble is, there could be 50 copies purchased on date "x", 80 copies purchased on date "y", and 250 copies purchased on date "z",...
2
3866
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 misbehavior which as ActiveWorkbook or Active Worksheet. Please help! peace, - mike
2
2388
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 these applications by name etc., but it will not be good enough, I need to use the exact process id. I also know that I can get it for Excel by doing as described here:...
2
24712
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 the info from each row, and store it in an MS Access database, or perhaps a comma-delimited file. How can I get into an excel file with VB6? I have VB6 enterprise, and I've installed the "excel" data access components.
1
1703
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 written on the web trying to achieve this: My add-in displays a couple of windows forms and some of these behave more like floating toolbars than standalone modal dialogs. I want to be able to somehow mirror the behaviour that normal Office...
2
1342
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 - 35:34:00 But when you click into the cell the forumla/information behind it is - 01/01/1900 11:34:00. The actual info I want is 35:34:00 to show into access but it shows the 01/01/1900 11:34:00 and I can't get it to format to show 35:34:00.
4
1252
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 Mario
0
9672
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9519
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10163
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7538
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.