473,804 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 37926
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*******@hotm ail.com> wrote in message
news:Oj******** ******@TK2MSFTN GP11.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:= _
"YourFileReques t.xls"
"Eliézer Madeira de Campos" <el*******@hotm ail.com> wrote in message
news:Oj******** ******@TK2MSFTN GP11.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*******@hotm ail.com> wrote in message
news:Oj******** ******@TK2MSFTN GP11.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
11314
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 Using this,I am first extracting data from given excel file into a temporary DataTable. After making some operations on that DataTable (like splitting one column into two), I am saving the data into actual
0
4203
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 Excel 2003, I have VBA code that creates and executes queries using the Access database, and returns the results to an Excel sheet. The first time the query is executed, results are returned to Excel in usually less than 10 seconds. However, if the...
9
6608
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 and read from Access files in C# application without having Access in this PC in this case we install MDAC , Is there any thing similar to MDAC for Excel ? if yes where can I download it ? what is the name of the file ?
4
4538
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 tab delimited file or an excel file. The application then saves the file in the correct format. The flip side is for the user to import/upload the file to the server The application must be able to import the excel file and read the contents. I...
11
4049
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 = "text/xml" Response.AddHeader("Content-Disposition", "filename=test.XML")
5
3157
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 wrong. Most examples to get things started include something: using Microsoft.Office.Interop.Excel; or using Excel; or using Excel = Microsoft.Office.Interop.Excel;
4
3075
by: Juliano.net | last post by:
How can I read an Excel 2003 XML Spreadsheet and save it as an Excel 97 file?
53
4763
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, and .Net2005 code. I'm developing in vb.net 2005. This test sub just reads an input text file, writing out records to another text file, eliminating records that have a '99' in them (it is similar to a CSV file). Some of my concerns are:
8
1915
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 this caused by the Cridview or does anyone know what causes this. Thank in advance.
0
9711
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
10595
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10335
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,...
0
10088
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9169
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7633
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
6862
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
5529
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...
3
3001
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.