473,473 Members | 1,857 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Manipulating Excel data with ASP.NET

Jim
I have a Web application that needs to update a Microsoft Excel spreadsheet
for complex calculations, whereby I read the results into a dataset for
display. I am accessing my spreadsheet using OLE DB and ADO. I'm trying to
use and SQL update statement to update a cell in my spreadsheet, but I keep
receiving the error: No value given for one or more required parameters.

From this SQL statement: UPDATE BallisticInfo SET [Info] =3200 WHERE [Index]
= 1

BallisticInfo is the name of the spreadsheet and Info and Index or column
names. Any ideas?
Nov 19 '05 #1
6 1643
On Wed, 2 Nov 2005 10:10:03 -0800, Jim <Ji*@discussions.microsoft.com> wrote:

¤ I have a Web application that needs to update a Microsoft Excel spreadsheet
¤ for complex calculations, whereby I read the results into a dataset for
¤ display. I am accessing my spreadsheet using OLE DB and ADO. I'm trying to
¤ use and SQL update statement to update a cell in my spreadsheet, but I keep
¤ receiving the error: No value given for one or more required parameters.
¤
¤ From this SQL statement: UPDATE BallisticInfo SET [Info] =3200 WHERE [Index]
¤ = 1
¤
¤ BallisticInfo is the name of the spreadsheet and Info and Index or column
¤ names. Any ideas?

So "Info" and "Index" are values in respective cells of the first row in the BallisticInfo
Worksheet?

In addition, have you specified HDR=Yes in your connection string?
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 19 '05 #2
Try

UPDATE [BallisticInfo$] SET [Info] =3200 WHERE [Index] = 1
HTH

Elton Wang

"Jim" wrote:
I have a Web application that needs to update a Microsoft Excel spreadsheet
for complex calculations, whereby I read the results into a dataset for
display. I am accessing my spreadsheet using OLE DB and ADO. I'm trying to
use and SQL update statement to update a cell in my spreadsheet, but I keep
receiving the error: No value given for one or more required parameters.

From this SQL statement: UPDATE BallisticInfo SET [Info] =3200 WHERE [Index]
= 1

BallisticInfo is the name of the spreadsheet and Info and Index or column
names. Any ideas?

Nov 19 '05 #3
Jim
I tried that parameter, and OLE DB throws this exception: Could not find
installable ISAM.

"Paul Clement" wrote:
On Wed, 2 Nov 2005 10:10:03 -0800, Jim <Ji*@discussions.microsoft.com> wrote:

¤ I have a Web application that needs to update a Microsoft Excel spreadsheet
¤ for complex calculations, whereby I read the results into a dataset for
¤ display. I am accessing my spreadsheet using OLE DB and ADO. I'm trying to
¤ use and SQL update statement to update a cell in my spreadsheet, but I keep
¤ receiving the error: No value given for one or more required parameters.
¤
¤ From this SQL statement: UPDATE BallisticInfo SET [Info] =3200 WHERE [Index]
¤ = 1
¤
¤ BallisticInfo is the name of the spreadsheet and Info and Index or column
¤ names. Any ideas?

So "Info" and "Index" are values in respective cells of the first row in the BallisticInfo
Worksheet?

In addition, have you specified HDR=Yes in your connection string?
Paul
~~~~
Microsoft MVP (Visual Basic)

Nov 19 '05 #4
Jim
I just tried that, and I received this exception: 'BallisticInfo$' is not a
valid name. Make sure that it does not include invalid characters or
punctuation and that it is not too long.

"Elton W" wrote:
Try

UPDATE [BallisticInfo$] SET [Info] =3200 WHERE [Index] = 1
HTH

Elton Wang

"Jim" wrote:
I have a Web application that needs to update a Microsoft Excel spreadsheet
for complex calculations, whereby I read the results into a dataset for
display. I am accessing my spreadsheet using OLE DB and ADO. I'm trying to
use and SQL update statement to update a cell in my spreadsheet, but I keep
receiving the error: No value given for one or more required parameters.

From this SQL statement: UPDATE BallisticInfo SET [Info] =3200 WHERE [Index]
= 1

BallisticInfo is the name of the spreadsheet and Info and Index or column
names. Any ideas?

Nov 19 '05 #5
On Wed, 2 Nov 2005 12:05:03 -0800, Jim <Ji*@discussions.microsoft.com> wrote:

¤ I tried that parameter, and OLE DB throws this exception: Could not find
¤ installable ISAM.
¤

The syntax is a little tricky once additional arguments are added.

ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=e:\My Documents\Book20.xls;" & _
"Extended Properties=""Excel 8.0;HDR=Yes;IMEX=1"""
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 19 '05 #6
Jim
Thank you, that works

"Paul Clement" wrote:
On Wed, 2 Nov 2005 12:05:03 -0800, Jim <Ji*@discussions.microsoft.com> wrote:

¤ I tried that parameter, and OLE DB throws this exception: Could not find
¤ installable ISAM.
¤

The syntax is a little tricky once additional arguments are added.

ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=e:\My Documents\Book20.xls;" & _
"Extended Properties=""Excel 8.0;HDR=Yes;IMEX=1"""
Paul
~~~~
Microsoft MVP (Visual Basic)

Nov 19 '05 #7

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

Similar topics

1
by: caroundw5h | last post by:
I would like to manipulate my excel file as if it were a text file with python (check for duplicates, uppercase etc.). I would like to know: 1) how do convert it first to a CSV file and...
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...
1
by: Robin Tucker | last post by:
Heres and interesting problem: I have a VB.NET program that creates reports via. Word Automation. This all works fine. What I want to do as part of this report generation process is to embed a...
2
by: E-Cube | last post by:
I am able to write to an existing excel file with data. I am wondering how do I outline my rows while in I am writing data to the excel file while in code? Thank you for any help that you may...
4
by: spirit | last post by:
Hi, I have C++ code to write data to a .csv file thereby resulting in an excel spreadsheet. I was just wondering whether it wud be possible for us to further manipulate the csv file like for...
2
by: Paulo | last post by:
using Excel; Excel.Application ExcelApp = new Excel.ApplicationClass(); string workbookPath = Server.MapPath("excel\\produto1.xls"); Excel.Workbook excelWorkbook =...
0
by: Ed from AZ | last post by:
I'm using Word 2003. I use a proprietary Java program that takes all the information in the various forms and generates an XML file. There are times I need to move information between files. I...
0
by: Tzesho | last post by:
A director of my company insists on using an Excel database to store his data. I have been tasked to come up with a new GUI in .NET C# that accesses and manipulates the data in his Excel database. ...
2
by: danny2000 | last post by:
Hi all. Please excuse my ignorance here, but is it possible and / or efficient to do things such as insert worksheets, make charts, pivot tables, filter data in an excel workbook using Perl? ...
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
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
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...
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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...

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.