Dear All,
I have a problem, which needs your ideas.
We have a excel document, which is been updated regularly. After everyday
updating, we export as HTML file and upload it.
As a ASP programmer, I want to write a script, which can parse this excel
file and make it as a web ready file.
Is there any simple way to do this?
Our data entry operator, is very new to computers and all he know is a
little in Excel.
Kindly pls help,
Warm Regards,
Benny 4 4018
"Benny Alexander" <ag_BennyREMOVE THIS@Yahoo-Remove_This.com > wrote in
message news:el******** ******@TK2MSFTN GP10.phx.gbl... Dear All,
I have a problem, which needs your ideas.
We have a excel document, which is been updated regularly. After everyday updating, we export as HTML file and upload it.
As a ASP programmer, I want to write a script, which can parse this excel file and make it as a web ready file.
I would not know why ASP has to do this type of task. Asp is made for real
time HTML tasks and not for daily static data :)
Just schedule a .vbs file using windows scheduler and you can read/write the
excel file using ADO and the provider=Jet.mi crosoft.oledb.4 .0 driver.
Is there any simple way to do this?
Our data entry operator, is very new to computers and all he know is a little in Excel.
Kindly pls help,
Warm Regards, Benny
I thought, using a upload object, I can upload and manipulate the excel work
sheet send the data in to a DB and read it again to prepare a HTML table.
I hope you are giving me a better way. Thanks. Could you please explain
little more.
Thanks again Egbert.
Regards,
Benny Alexander
"Egbert Nierop (MVP for IIS)" <eg***********@ nospam.com> wrote in message
news:uX******** ******@tk2msftn gp13.phx.gbl... "Benny Alexander" <ag_BennyREMOVE THIS@Yahoo-Remove_This.com > wrote in message news:el******** ******@TK2MSFTN GP10.phx.gbl... Dear All,
I have a problem, which needs your ideas.
We have a excel document, which is been updated regularly. After
everyday updating, we export as HTML file and upload it.
As a ASP programmer, I want to write a script, which can parse this
excel file and make it as a web ready file. I would not know why ASP has to do this type of task. Asp is made for real time HTML tasks and not for daily static data :) Just schedule a .vbs file using windows scheduler and you can read/write
the excel file using ADO and the provider=Jet.mi crosoft.oledb.4 .0 driver.
Is there any simple way to do this?
Our data entry operator, is very new to computers and all he know is a little in Excel.
Kindly pls help,
Warm Regards, Benny
Here is some generic code to display data from a spreadsheet of unknown
column count. It's okay, although Aaron may yell at me for the nested
loops.
<%
Dim oADO, sConnection, sSQL, rsSheet, aVals
Dim x, y
sConnection = "Provider=Micro soft.Jet.OLEDB. 4.0;Data
Source=D:\PathO nServer\file.xl s;Extended Properties=""Ex cel
8.0;HDR=No;IMEX =1"""
sSQL = "SELECT * FROM [Sheet1$]"
Set oADO = Server.CreateOb ject("ADODB.Con nection")
oADO.Open sConnection
Set rsSheet = oADO.Execute(sS QL)
If Not rsSheet.EOF Then aVals = rsSheet.GetRows ()
rsSheet.Close : Set rsSheet = Nothing
oADO.Close : Set oADO = Nothing
If IsEmpty(aVals) Then
Response.Write "The worksheet is blank."
Response.End
End If
%>
<table>
<tr>
<% For y = 0 To UBound(aVals, 1) %>
<td><b><%=aVals (i, 0)%></td>
<% Next %>
</tr>
<% For y = 1 To UBound(aVals, 2) %>
<tr>
<% For x = 0 To UBound(aVals, 1) %>
<td><%=aVals( x, y)%></td>
<% Next %>
</tr>
<% Next %>
</table>
Ray at work
"Benny Alexander" <ag_BennyREMOVE THIS@Yahoo-Remove_This.com > wrote in
message news:el******** ******@TK2MSFTN GP10.phx.gbl... Dear All,
I have a problem, which needs your ideas.
We have a excel document, which is been updated regularly. After everyday updating, we export as HTML file and upload it.
As a ASP programmer, I want to write a script, which can parse this excel file and make it as a web ready file.
Is there any simple way to do this?
Our data entry operator, is very new to computers and all he know is a little in Excel.
Kindly pls help,
Warm Regards, Benny
Thanks a lot Ray. This is a great help.
Benny
"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:Ob******** ******@TK2MSFTN GP09.phx.gbl... Here is some generic code to display data from a spreadsheet of unknown column count. It's okay, although Aaron may yell at me for the nested loops.
<%
Dim oADO, sConnection, sSQL, rsSheet, aVals Dim x, y sConnection = "Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=D:\PathO nServer\file.xl s;Extended Properties=""Ex cel 8.0;HDR=No;IMEX =1""" sSQL = "SELECT * FROM [Sheet1$]" Set oADO = Server.CreateOb ject("ADODB.Con nection") oADO.Open sConnection Set rsSheet = oADO.Execute(sS QL) If Not rsSheet.EOF Then aVals = rsSheet.GetRows () rsSheet.Close : Set rsSheet = Nothing oADO.Close : Set oADO = Nothing
If IsEmpty(aVals) Then Response.Write "The worksheet is blank." Response.End End If
%>
<table> <tr> <% For y = 0 To UBound(aVals, 1) %> <td><b><%=aVals (i, 0)%></td> <% Next %> </tr>
<% For y = 1 To UBound(aVals, 2) %> <tr> <% For x = 0 To UBound(aVals, 1) %> <td><%=aVals( x, y)%></td> <% Next %> </tr> <% Next %> </table>
Ray at work
"Benny Alexander" <ag_BennyREMOVE THIS@Yahoo-Remove_This.com > wrote in message news:el******** ******@TK2MSFTN GP10.phx.gbl... Dear All,
I have a problem, which needs your ideas.
We have a excel document, which is been updated regularly. After
everyday updating, we export as HTML file and upload it.
As a ASP programmer, I want to write a script, which can parse this
excel file and make it as a web ready file.
Is there any simple way to do this?
Our data entry operator, is very new to computers and all he know is a little in Excel.
Kindly pls help,
Warm Regards, Benny
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Guy Incognito |
last post by:
Hello,
I've written an asp.net application that creates Excel documents. It
works by creating an excel document in XML format.
But I wonder if I'm reinventing the wheel. I know that there are ways to
read and write Excel files with ADO, but as far as I can tell, it
doesn't provide the flexibility I need. I need to be able to generate...
|
by: Sarah |
last post by:
Hello.
I am using Microsoft.Office.Interop.Excel in a C# .NET project. I want to
open an Excel application with a specific file name.
I am currently opening it with this code:
oXL.Workbooks.Open(src, Type.Missing, true, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing,...
|
by: Frank X |
last post by:
Excel 2002 introduced a capability to add custom worksheet functions to
Excel direct from a COM/ActiveX object.
I can use C# to develop a COM object which I can use fine from Excel/VBA,
however I can't see it using the Excel Tools/Add-Ins - Automation button.
Now this appears to be because it is not an *ActiveX* COM object, apparently
in...
|
by: Mansi |
last post by:
I need to do some research on how to use excel automation from c#. Does
anyone know of any good books related to this subject?
Thanks.
Mansi
|
by: A B |
last post by:
Hello,
I have the following two lines in my VB.NET code to cause a datagrid to
output in Excel format:
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader("Content-disposition","attachment;filename=HubXLOut.xls")
When I click the "Open" dialog box and then Save As ->, the default file
type selected is HTML, not XLS. ...
| |
by: Steve Richter |
last post by:
I am getting error in a vbscript:
ActiveX component cant create object: Excel.Application.
The vbscript code is:
Dim objExcel
Set objExcel = CreateObject("Excel.Application")
I am pretty sure it is a permission issue because the script works when
I point the browser directly at the .htm file on the c: drive:...
|
by: a.theil |
last post by:
Please help!
I need a simple excel automation, just 2 write some files into excel.
I do:
Dim oXL As Excel.Application
Dim oWB As Excel.Workbook
Dim oSheet As Excel.Worksheet
Dim oRng As Excel.Range
|
by: Mark Rae |
last post by:
Hi,
My client has asked me to provide a "quick and dirty" way to export the
contents of a DataGrid to both Excel for analysis and Word for editing and
printing, so I'm investigating client-side automation.
N.B. the environment is a totally enclosed intranet, all the client machines
have WinXP, IE6 and Office Pro 2003 with all the latest...
|
by: Peter |
last post by:
VS2008 ans ASP.NET 3.5, Office 2003
What is the best way to run Excel Template from ASP.NET web page were the
Excel is only installed on the client without any ActiveX? If so can someone
point me to an example? Do not have Sharepoint.
This is for Intranet and security is not important.
Thank You
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
| |
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |