P
PO
We have a report application on our intranet and it's using
OWC11.Spreadsheet to display data.
The following principle is used to retrieve and display data:
<%
Set cn = Server.CreateObject("Adodb.Connetion")
Set rs = Server.CreateObject("Adodb.Recordset")
cn.Open "SomeDB"
rs.Open "SELECT SomeField FROM SomeTable;", cn
%>
Sub Window_OnLoad()
<%Do Until rs.EOF%>
Sp1.ActiveCell.Value = "<%rs.Fields("SomeField").Value%>"
Sp1.ActiveCell.Offset(1, 0).Select
<%rs.MoveNext: Loop%>
End Sub
<OBJECT id="Sp1" classid="clsid:0002E559-0000-0000-C000-000000000046">
1. Is this how it's normaly done? Or should I create Sp1 on the server, load
the data, and then assign Sp1:s HTMLData to an OWC11.Spreadsheet on the
client? In that case, why?
2. I understand that I can't use MS Excel on the server-side but, given the
above exemple, why can't I just use MS Excel directly on the webpage?
Can someone please explain to me when, in an intranet application, to use
Excel and when to use OWC.Spreadsheet?
All our clients have a Office 2003 prof. license.
Regards
PO
OWC11.Spreadsheet to display data.
The following principle is used to retrieve and display data:
<%
Set cn = Server.CreateObject("Adodb.Connetion")
Set rs = Server.CreateObject("Adodb.Recordset")
cn.Open "SomeDB"
rs.Open "SELECT SomeField FROM SomeTable;", cn
%>
Sub Window_OnLoad()
<%Do Until rs.EOF%>
Sp1.ActiveCell.Value = "<%rs.Fields("SomeField").Value%>"
Sp1.ActiveCell.Offset(1, 0).Select
<%rs.MoveNext: Loop%>
End Sub
<OBJECT id="Sp1" classid="clsid:0002E559-0000-0000-C000-000000000046">
1. Is this how it's normaly done? Or should I create Sp1 on the server, load
the data, and then assign Sp1:s HTMLData to an OWC11.Spreadsheet on the
client? In that case, why?
2. I understand that I can't use MS Excel on the server-side but, given the
above exemple, why can't I just use MS Excel directly on the webpage?
Can someone please explain to me when, in an intranet application, to use
Excel and when to use OWC.Spreadsheet?
All our clients have a Office 2003 prof. license.
Regards
PO