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

Home Posts Topics Members FAQ

Excel to HTML conversion automation :: How to?

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
Jul 19 '05 #1
4 4014
"Benny Alexander" <ag_BennyREMOVETHIS@Yahoo-Remove_This.com> wrote in
message news:el**************@TK2MSFTNGP10.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.microsoft.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


Jul 19 '05 #2
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**************@tk2msftngp13.phx.gbl...
"Benny Alexander" <ag_BennyREMOVETHIS@Yahoo-Remove_This.com> wrote in
message news:el**************@TK2MSFTNGP10.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.microsoft.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

Jul 19 '05 #3
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=Microsoft.Jet.OLEDB.4.0;Data
Source=D:\PathOnServer\file.xls;Extended Properties=""Excel
8.0;HDR=No;IMEX=1"""
sSQL = "SELECT * FROM [Sheet1$]"
Set oADO = Server.CreateObject("ADODB.Connection")
oADO.Open sConnection
Set rsSheet = oADO.Execute(sSQL)
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_BennyREMOVETHIS@Yahoo-Remove_This.com> wrote in
message news:el**************@TK2MSFTNGP10.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

Jul 19 '05 #4
Thanks a lot Ray. This is a great help.

Benny
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:Ob**************@TK2MSFTNGP09.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=Microsoft.Jet.OLEDB.4.0;Data
Source=D:\PathOnServer\file.xls;Extended Properties=""Excel
8.0;HDR=No;IMEX=1"""
sSQL = "SELECT * FROM [Sheet1$]"
Set oADO = Server.CreateObject("ADODB.Connection")
oADO.Open sConnection
Set rsSheet = oADO.Execute(sSQL)
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_BennyREMOVETHIS@Yahoo-Remove_This.com> wrote in
message news:el**************@TK2MSFTNGP10.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


Jul 19 '05 #5

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

Similar topics

5
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...
1
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: ...
6
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...
17
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
1
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"...
6
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...
6
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...
6
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...
13
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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: 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...
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 ...

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.