473,419 Members | 1,704 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,419 software developers and data experts.

Excel In VB.net

I am trying to create a new spreadsheet in Excel using VB.net 2003.

This application has to be useable by a range of users running anywhere from
Excel 2000 to Excel XP to Excel 2003.

My dev machine has Excel 2003.

How do I get the libraries for the earlier version of Excel? VB.net 2003
has Excel 5.0 library in it, but I cannot find any documentation on that
particular library set anywhere. It doesn't allow me to put information in
my Cells, it tells me that they are values and are not editable, plus I get
'Member Not Found' errors when trying to make new workbooks or worksheets.

I am very familiar with programming for the newer versions of Excel
(2000-2003). What are my options here?

I don't want to have to install an older version on my dev machine, and I do
not want to have to try and program this app on a differenet machine.

Does anyone have an example of basic sheet creation and formatting in VB.net
for the older 5.0 library? That would be greatly appreciated.
Nov 21 '05 #1
3 1793
..Net 2k3 has Excel 8.0 which works with 2000 and up

"Atley" wrote:
I am trying to create a new spreadsheet in Excel using VB.net 2003.

This application has to be useable by a range of users running anywhere from
Excel 2000 to Excel XP to Excel 2003.

My dev machine has Excel 2003.

How do I get the libraries for the earlier version of Excel? VB.net 2003
has Excel 5.0 library in it, but I cannot find any documentation on that
particular library set anywhere. It doesn't allow me to put information in
my Cells, it tells me that they are values and are not editable, plus I get
'Member Not Found' errors when trying to make new workbooks or worksheets.

I am very familiar with programming for the newer versions of Excel
(2000-2003). What are my options here?

I don't want to have to install an older version on my dev machine, and I do
not want to have to try and program this app on a differenet machine.

Does anyone have an example of basic sheet creation and formatting in VB.net
for the older 5.0 library? That would be greatly appreciated.

Nov 21 '05 #2
Actually, (I just checked in my COM References) I only have:
Microsoft Excel 5.0 Object Library (VB.net)
and
Microsoft Excel 11.0 Object Library (Office 2003)
avaliable to me... is there a service pack or an update that would give me
the 8.0 OL? that would be ideal.

I have Visual Studio .net 2003 Enterprise Arch.

Thanks for the feedback.

"brix_zx2" <br*****@discussions.microsoft.com> wrote in message
news:38**********************************@microsof t.com...
.Net 2k3 has Excel 8.0 which works with 2000 and up

"Atley" wrote:
I am trying to create a new spreadsheet in Excel using VB.net 2003.

This application has to be useable by a range of users running anywhere from Excel 2000 to Excel XP to Excel 2003.

My dev machine has Excel 2003.

How do I get the libraries for the earlier version of Excel? VB.net 2003 has Excel 5.0 library in it, but I cannot find any documentation on that particular library set anywhere. It doesn't allow me to put information in my Cells, it tells me that they are values and are not editable, plus I get 'Member Not Found' errors when trying to make new workbooks or worksheets.
I am very familiar with programming for the newer versions of Excel
(2000-2003). What are my options here?

I don't want to have to install an older version on my dev machine, and I do not want to have to try and program this app on a differenet machine.

Does anyone have an example of basic sheet creation and formatting in VB.net for the older 5.0 library? That would be greatly appreciated.

Nov 21 '05 #3
Atley,
You’ve probably long since solved this problem, but for anyone who’s interested: An Excel file can be created using a tab separated flat file (should work in all versions of Excel, right back to 95)… in VB.NET, something like this:

Imports System.IO
Imports System.Text
………..

Dim strPath As String = "c:\test.xls"

' Delete the file if it exists.
If File.Exists(strPath) Then File.Delete(strPath)

Dim sw As StreamWriter = File.CreateText(strPath)

sw.WriteLine("Header A" & vbTab & "Header B")
sw.WriteLine("1a" & vbTab & "1b")
sw.WriteLine("2a" & vbTab & "2b")
sw.Flush()
sw.Close()
May 5 '06 #4

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

Similar topics

13
by: Allison Bailey | last post by:
Hi Folks, I'm a brand new Python programmer, so please point me in the right direction if this is not the best forum for this question.... I would like to open an existing MS Excel spreadsheet...
3
by: Otie | last post by:
I found the following under the GetObject help notes and in the example for GetObject: "This example uses the GetObject function to get a reference to a specific Microsoft Excel worksheet...
6
by: Matthew Wieder | last post by:
I have the following requirements: Build a stand-alone C# application that asks the user to click in a cell in an Excel spreadsheet, and then displays the address of that cell in the C#...
14
by: pmud | last post by:
Hi, I need to use an Excel Sheet in ASP.NET application so that the users can enter (copy, paste ) large number of rows in this Excel Sheet. Also, Whatever the USER ENETRS needs to go to the...
22
by: Howard Kaikow | last post by:
There's a significant problem in automating Excel from VB .NET. Reminds me of a problem I encountered almost 3 years ago that was caused by the Norton Auntie Virus Office plug-in. Can anybody...
9
by: Anthony | last post by:
To me, creating Excel 2003 spreadsheets programmatically via VB.NET hasn't really changed since the days of VB6. That is, I'd do something similar to this Code: Dim ExcelApp As...
7
by: Alain \Mbuna\ | last post by:
Hi everybody. In my program I have some data that is calculated after some input from the user. I have written some code that opens an Excel workbook, with 5 worksheets and the calculated data...
16
by: alexia.bee | last post by:
Hi all, In some weird reason, excel instance won;t die if i remove the comment from 4 lines of setting values into struct. here is a snipcode public...
9
by: Doug Glancy | last post by:
I got the following code from Francesco Balena's site, for disposing of Com objects: Sub SetNothing(Of T)(ByRef obj As T) ' Dispose of the object if possible If obj IsNot Nothing AndAlso...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
1
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
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
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...
0
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...

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.