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

Process Excel File

Good Day,

I have a web application created using ASP.NET (with VB.NET). The
application allow user to browse Excel raw data file then the program will
grab data from the file to perform further data processing.

The question is I'm doing this by creating an Excel application everytime to
do the processing which in other words ActiveX object is being created. New
release of IE is blocking the ActiveX object which causes my application fail
to perform Excel file processing.

Is there a way to perform the things the application need to do without
creating the ActiveX object? Sound like OWC only manage to allow data
populating to Excel file and not able to read data from Excel file.

Appreciate your help. Thanks!
Feb 15 '07 #1
2 2400
On Feb 15, 9:52 am, LBT <L...@discussions.microsoft.comwrote:
Good Day,

I have a web application created using ASP.NET (with VB.NET). The
application allow user to browse Excel raw data file then the program will
grab data from the file to perform further data processing.

The question is I'm doing this by creating an Excel application everytime to
do the processing which in other words ActiveX object is being created. New
release of IE is blocking the ActiveX object which causes my application fail
to perform Excel file processing.

Is there a way to perform the things the application need to do without
creating the ActiveX object? Sound like OWC only manage to allow data
populating to Excel file and not able to read data from Excel file.

Appreciate your help. Thanks!
I have an app I wrote in VB.NET (VS2005) that reads the contents of
Excel spreadsheets using the Microsoft Excel Driver. It is an ODBC
driver, so once you open a connection to the worksheet in your
spreadsheet, you can access the data with SQL Select statements.
Connection string I use is:

Driver={Microsoft Excel Driver (*.xls)};Dbq=<full path to excel XLS
file>;DriverID=790

Select statement looks like:

SELECT TOP 1 * FROM [WORKSHEETNAME$]

Feb 15 '07 #2
Hi Zacks,

Appreciate and thanks for your reply :p

The Excel raw data file incorporates some specific cells which are being
assigned with a name (but the position of the cell is not fixed from one file
to another). I need to grab the value from those specific cells, is there any
way to do this?

I also need to loop through the Excel worksheet to grab certain data if met
with certain keyword contained inside the value. Any better way to do this
looping?

Thank you very much!
"za***@construction-imaging.com" wrote:
On Feb 15, 9:52 am, LBT <L...@discussions.microsoft.comwrote:
Good Day,

I have a web application created using ASP.NET (with VB.NET). The
application allow user to browse Excel raw data file then the program will
grab data from the file to perform further data processing.

The question is I'm doing this by creating an Excel application everytime to
do the processing which in other words ActiveX object is being created. New
release of IE is blocking the ActiveX object which causes my application fail
to perform Excel file processing.

Is there a way to perform the things the application need to do without
creating the ActiveX object? Sound like OWC only manage to allow data
populating to Excel file and not able to read data from Excel file.

Appreciate your help. Thanks!

I have an app I wrote in VB.NET (VS2005) that reads the contents of
Excel spreadsheets using the Microsoft Excel Driver. It is an ODBC
driver, so once you open a connection to the worksheet in your
spreadsheet, you can access the data with SQL Select statements.
Connection string I use is:

Driver={Microsoft Excel Driver (*.xls)};Dbq=<full path to excel XLS
file>;DriverID=790

Select statement looks like:

SELECT TOP 1 * FROM [WORKSHEETNAME$]

Feb 21 '07 #3

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

Similar topics

2
by: Sri | last post by:
I am writing an asp.net applicaition using VB coding. In a function, I am opening an excel file with the following code, Dim objExcel As Object Dim objWorkBook As Object objExcel =...
2
by: Lynn A. | last post by:
I have a process that is currently in 4 separate steps that are operated by individual buttons on a form in Access. In Access: Button 1. Select the csv file to open (filename gets stored in text...
10
by: Lars-Erik Aabech | last post by:
Hi! This issue have been discussed a lot, but I haven't found a solution that applies to ASP.NET. I have a library which does some operations on Excel documents, and it will be used in an...
2
by: Praveen K | last post by:
I have a problem in communicating between the C# and the Excel Interop objects. The problem is something as described below. I use Microsoft Office-XP PIA dll’s as these dll’s were been...
1
by: Michael Tkachev | last post by:
Hi Everybody, I created an Excel file in the ASP.Net. When I wrote this file on the disk I tryed to release COM objects. But I couldn't do it. When my method finished an "Excel" process exists...
2
by: touf | last post by:
Hi, I use the folowing code to create a new Excel file using a query It creates an excel file and save it on the disc, but When I double-clic on it (explorer) it open Excel and bloc,(don't display...
0
by: WATYF | last post by:
This is my problem... I have some code that starts a Process and returns it to a variable... (prcBat) At any time while that process is running... I want to be able to Kill it by pressing a...
2
by: | last post by:
I created a simple test app to start another app and get the process info (to see if it has exited). Heres my code: Dim sinfo As New ProcessStartInfo, myProcess As Process sinfo.FileName =...
3
by: eugenet | last post by:
Hello, This is probably a newbie question. In my C# program, when I try to delete a file, I get an exception that the file is locked by another process. I would like to terminate the process...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.