hey DrBunchman..
Now i have got the connection correct..and now its able to display the data in the excel file on a browser in a table form..so now i have to plot it i alraedy got the applet working but now is how to get the connect between the applet with the data ?
below is the correct data for the connection between excel and ASP..so if any 1 need it can play around with it..
This is the working code between my ASP and excel..
------------------------------------------------------------------------------------------------------------
- <% Option Explicit %>
-
<html>
-
<body>
-
-
<%
-
Dim objConn, objRS, strSQL
-
Dim x, curValue
-
-
Set objConn = Server.CreateObject("ADODB.Connection")
-
objConn.Open "DRIVER={Microsoft Excel Driver (*.xls)}; IMEX=1; HDR=NO; "&_
-
"DBQ=C:\Inetpub\wwwroot\InfoWeb\14Apr08_NUS_hr_Data.xls;"
-
-
strSQL = "SELECT * FROM D1:D170"
-
Set objRS=objConn.Execute(strSQL)
-
Response.Write("<table border=""1"">")
-
Response.Write("<tr>")
-
For x=0 To objRS.Fields.Count-1
-
Response.Write("<th>" & objRS.Fields(x).Name & "</th>")
-
Next
-
Response.Write("</tr>")
-
Do Until objRS.EOF
-
Response.Write("<tr>")
-
For x=0 To objRS.Fields.Count-1
-
curValue = objRS.Fields(x).Value
-
If IsNull(curValue) Then
-
curValue="N/A"
-
End If
-
curValue = CStr(curValue)
-
Response.Write("<td>" & curValue & "</td>")
-
Next
-
Response.Write("</tr>")
-
objRS.MoveNext
-
Loop
-
objRS.Close
-
Response.Write("</table>")
-
-
objConn.Close
-
Set objRS=Nothing
-
Set objConn=Nothing
-
%>
-
-
</body>
-
</html>
--------------------------------------------------------------------------
Below is the code of applet to plot the graph how to connect it?
that is a hardcoded in the applet.how to use this graph with the data displayed?
hope u could help me .
-------------------------------------------------------------------------
-----------------------------------------------------------------------