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

Open Excel sheet with ADO - problems

I am able to open an Excell (2000) spreadsheet using ADO.NET, and for
the most part, it works well. However, partway through the records,
the data stops coming in for the column.

The column should be read as a text field, although many of the
records are all numeric. For example, in the records that ARE read
correctly, one may be 0010 and another may be 0010B.

Interestlingly, when the data stops coming through, the data begins
with a one. The row with value 0998 comes through fine, but the next
row with 1000 is blank. However, if I go into the spreadsheet and
modify the value of 1000 to add a single quote, it does come through
in the dataset. Unfortunately, I cannot modify the file in a
"production" environment, so this is not an option. I also cannot
install Excel on the server and use automation to do this.

Any suggestions as to what could help with an ADO connection?

Thanks,
Dan

Nov 18 '05 #1
1 1063
Here are some alternate techniques for working with Excel spreadsheets:
http://www.aspnetpro.com/NewsletterA...200309so_l.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Dan Brussee" <db******@nc.rr.com> wrote in message
news:nt********************************@4ax.com...
I am able to open an Excell (2000) spreadsheet using ADO.NET, and for
the most part, it works well. However, partway through the records,
the data stops coming in for the column.

The column should be read as a text field, although many of the
records are all numeric. For example, in the records that ARE read
correctly, one may be 0010 and another may be 0010B.

Interestlingly, when the data stops coming through, the data begins
with a one. The row with value 0998 comes through fine, but the next
row with 1000 is blank. However, if I go into the spreadsheet and
modify the value of 1000 to add a single quote, it does come through
in the dataset. Unfortunately, I cannot modify the file in a
"production" environment, so this is not an option. I also cannot
install Excel on the server and use automation to do this.

Any suggestions as to what could help with an ADO connection?

Thanks,
Dan

Nov 18 '05 #2

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...
6
by: Daniel | last post by:
Hi all, Can i open and edit the excel sheet on web page after downloading? After editing, i close the web page and the excel file auto upload to the server. Is it possible? I really struggling...
3
by: | last post by:
Hello, I have a routine in my Windows application that exports the contents of a datagrid to Excel. It is modeled closely after the HowTo example on MSDN: http://tinyurl.com/5g2jm. Depending...
3
by: Jennyfer Barco | last post by:
Hello, I have a question, how can I open Microsoft Excel from .NET. I only need to open a new file in Excel and paste some information and set the Microsoft Excel as the enabled aplication, so the...
3
by: pleaseexplaintome_2 | last post by:
using the code below (some parts not included), I create a new excel workbook with spreadheets. I then want to delete a spreadsheet, but a reference remains open and excel stays in task manager...
0
by: Vader | last post by:
I am new to this forum. Thanks in advance for and help. The following is what I am looking for: 1. I need help with VB code to open a MS Word (.doc) file. 2. Read lines from the MS Word (.doc)...
1
ammoos
by: ammoos | last post by:
Hi friends Actually my problem is with the excel sheets. I have convert one of my access report to excel sheet that have too many records. After I convert the report to excel successfully, I cant...
2
by: kunalgujar | last post by:
I am using ASP to open a excel file. I've noticed that Internet Explorer adds a number in square brackets to files downloaded from the internet and opened directly (i.e. by clicking 'Open' and not...
4
by: JaxDawg | last post by:
I have a spreadsheet saved as an XML spreadsheet so I can manipulate it easier (and don't need COM). When I'm done, I want to display to the user. Currently, I'm using simple JavaScript in my PHP...
1
by: =?Utf-8?B?QXNobGV5VA==?= | last post by:
Inside : Private Sub _xlApp_WorkbookBeforeClose(ByRef Cancel As Boolean) Handles _xlApp.WorkbookBeforeClose I have Try Dim QuoteActivity As New QuoteSheetActivityForm()...
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
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
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
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
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.