473,406 Members | 2,312 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.

Using VB.NET to read an Excel 2003 file

I'm trying to use VB.NET to read an Excel 2003 file, so to process its data
and eventually store (some of) it into a SQL Server 2000 database. However,
I'm not quite understanding Office/Excel 2003 object models, and couldn't
find any documentation on it.
Anybody out there has any experience in doing so? Or has a better idea to
acomplish those goals?
I've searched the web looking for samples, but couldn't find any. Did
anybody have a better luck than me?

Eliézer M de Campos
Caxias do Sul RS, Brazil
Nov 20 '05 #1
3 37910
I believe 2003 is 100% .NET compatible, in which case you would have to add
a reference in your project references. But it should be either a .NET
component or a COM component (at the least) called Excel. It might install
another library or 2 into the project (Excel 10.0 installs VBIDE I believe)
in which case you will get all your functionlaity in the Excel namespace.

Hope it helps.
CJ
"Eliézer Madeira de Campos" <el*******@hotmail.com> wrote in message
news:Oj**************@TK2MSFTNGP11.phx.gbl...
I'm trying to use VB.NET to read an Excel 2003 file, so to process its data and eventually store (some of) it into a SQL Server 2000 database. However, I'm not quite understanding Office/Excel 2003 object models, and couldn't
find any documentation on it.
Anybody out there has any experience in doing so? Or has a better idea to
acomplish those goals?
I've searched the web looking for samples, but couldn't find any. Did
anybody have a better luck than me?

Eliézer M de Campos
Caxias do Sul RS, Brazil

Nov 20 '05 #2
Workbooks.Open Filename:= _
"YourFileRequest.xls"
"Eliézer Madeira de Campos" <el*******@hotmail.com> wrote in message
news:Oj**************@TK2MSFTNGP11.phx.gbl...
I'm trying to use VB.NET to read an Excel 2003 file, so to process its data and eventually store (some of) it into a SQL Server 2000 database. However, I'm not quite understanding Office/Excel 2003 object models, and couldn't
find any documentation on it.
Anybody out there has any experience in doing so? Or has a better idea to
acomplish those goals?
I've searched the web looking for samples, but couldn't find any. Did
anybody have a better luck than me?

Eliézer M de Campos
Caxias do Sul RS, Brazil

Nov 20 '05 #3
It's definitely possible to do. Have you found these?

http://msdn.microsoft.com/library/de...l/ExcelObj.asp

http://support.microsoft.com/?kbid=311452

http://msdn.microsoft.com/library/de...mmersguide.asp
"Eliézer Madeira de Campos" <el*******@hotmail.com> wrote in message
news:Oj**************@TK2MSFTNGP11.phx.gbl...
I'm trying to use VB.NET to read an Excel 2003 file, so to process its data and eventually store (some of) it into a SQL Server 2000 database. However, I'm not quite understanding Office/Excel 2003 object models, and couldn't
find any documentation on it.
Anybody out there has any experience in doing so? Or has a better idea to
acomplish those goals?
I've searched the web looking for samples, but couldn't find any. Did
anybody have a better luck than me?

Eliézer M de Campos
Caxias do Sul RS, Brazil

Nov 20 '05 #4

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

Similar topics

4
by: RK | last post by:
Hi, In my application, I need to copy data from an Excel file into a SQL table. The article related to this can be found at http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B306572 ...
0
by: Mike Knight | last post by:
(I've also posted this problem on microsoft.public.excel.programming) I have a MS Access 2003 Database named "AS400 Fields.mdb". This database contains links to tables on an AS400. In MS...
9
by: [Yosi] | last post by:
Can I make an Excel file without having Excel in my PC ? I want to create Excel files from my C# application , then open those files later in another PC who have Excel installed . As we can open...
4
by: Jae | last post by:
I'm writing a web application that exports and imports excel files. The application gets a list of users and their info and displays it in a datagrid .The user then selects to save the file as a...
11
by: Dorsa | last post by:
HI, Could you please tell me the error in here. I am trying to open an XML file from a link. Response.Clear() Response.Expires = 0 Response.BufferOutput = False Response.ContentType =...
5
by: Mike in Santa Rosa | last post by:
I'm trying to get a simple c# app built that can launch/manipulate an excel workbook, sheet. I've chased down several examples and can't any of them to work. So I must be doing somethnig obviouslt...
4
by: Juliano.net | last post by:
How can I read an Excel 2003 XML Spreadsheet and save it as an Excel 97 file?
53
by: Hexman | last post by:
Hello All, I'd like your comments on the code below. The sub does exactly what I want it to do but I don't feel that it is solid as all. It seems like I'm using some VB6 code, .Net2003 code,...
8
by: Fendi Baba | last post by:
I created an ASP.net page which opens excel. The data opens up correctly in MS office Excel 2007 but when we use a mahcine with MS Office 2003 we encountered a message, "Cannot read output file" Is...
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?
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.