emblewembl
Programmer
Hi all, I am working on a site that is mainly built from ASP pages which read data from an Excel file. All has been going smoothly until the last page and we get a strange error. There are 3 fields which will not display at all although the page loads ok.
Connectiong to spreadsheet like so:
DIsplaying data like so:
There are four rows, and the cells that don't display (or the system sees as empty) are first row, cells 1, 2 and 5.
Help!!! i love chocolate
Connectiong to spreadsheet like so:
Code:
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
'The Excel File Name
XLFile = "C:\Inetpub\[URL unfurl="true"]wwwroot\scgu\"&[/URL] strFileToLoad &""
If objFSO.FileExists(XLFile) Then
FileFound = true
' create and open the objConnection to the database
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "DRIVER=Microsoft Excel Driver (*.xls);" _
& "DBQ=" & XLFile
Set objRs = objConn.Execute("Select * From [wwwStart$]")
Else
FileFound = false
End If
Set objFSO=nothing
DIsplaying data like so:
Code:
If FileFound = true Then
Do While not objRs.EOF
Response.Write("<tr>") & vbCrLf
Response.Write("<td bgcolor=""#cccccc"" width=""10%"" valign=""top"" class="""& strClass &"""><b>" & strMatchNum &"</b></td>")
Response.Write("<td width=""20%"" valign=""top"" class="""& strClass &""">" & strStartTime & "</td>")
Response.Write("<td width=""20%"" valign=""top"" class="""& strClass &""">" & strEndTime & "</td>")
Response.Write("<td width=""20%"" valign=""top"" class="""& strClass &""">" & objRs("Heading4") & "</td>")
Response.Write("<td width=""20%"" valign=""top"" class="""& strClass &""">" & objRs("Heading5") & "</td>")
Response.Write("<td width=""10%"" valign=""top"" class="""& strClass &""">" & objRs("Heading6") & "</td>")
Response.Write("</tr>") & vbCrLf
objRs.Movenext
Loop
End If
There are four rows, and the cells that don't display (or the system sees as empty) are first row, cells 1, 2 and 5.
Help!!! i love chocolate