Set ExcelConn = Server.CreateObject("ADODB.Connection")
Set ExcelRS = Server.CreateObject("ADODB.Recordset")
......
sSQL = "SELECT * FROM [Sheet1$]"
set ExcelRS = ExcelConn.Execute(sSQL)
it work fine for those cell that contained string ,but once the cell is numeric,i cant get anything in the cell.How can i solve this problem.
I use asp to develop a web page to read an excel file containing Chinese Character then display it in the web page. Unfortunately, I cant display it!!! it will display (?????????). Code:
I'm converting a VB6/SQL Server application to a web application. I need to read data to and from Excel and Word. I'm not allowed to install Excel and Word on the server, only on the client. Is there a way to use client side scripts to read from and write to Excel/Word files?
how can i read the datas in specific columns and rows from excel(.csv) file and then use that datas to calculate the min(example) and write the results into the same excel(.csv) file.
I had created a macro to read data from an excel sheet and write the values to a text file. I had used "ActiveSheet.Range("GB" & k).Value" command to read the values from the excel.some cells in the excel sheet is having two lines value and four lines data, the text file is generating that value in a single line. (Ex. the cell value in address column is in four lines and should display in four lines in the text file generated from the macro)
Can i do something in the excel sheet or in vb script to read the address value line by line and write line by line in text file?
I,ve uploaded an MS Access DB to a web host and find that although I have set the DB permissions to Read and Write the actual tranfer changes these permissions and when I try to write to the DB there is an error to the effect that the DB is read only.
I have downloaded the DB I uploaded with full read/write permissions and find that the DB is read only.
when I retrieve data from the my database if I got the name and description. I want only display the first 20/30 letters of the description but I don't know how to do.
I have an ASP web site that I can read an XML file and process it fine. However, now I am asked to read XML data via (I think) a web service url. I looked at the ADO Stream and it looks like it may be a way to do this, but I'm not sure. I need to read 2 different streams, one with data and one with returned images.
I need to process the data like a recordset and load it (and other) information into a web page and return to the browser. Can anyone point me in a direction to read more about how to do this and/or some samples?
I need to use ASP to read a SQL db for dates. If the date falls within "this (current) month", I need to auto-populate a word document with the corresponding information from the tables... Is this possible.
I have an asp page currently such as default.asp?x=1&y=2&z=3
Now I want to keep the existing parameters and attach another parameter to it and resend to default.asp
As the original parameters are dynamic, and may or may not be generated, the only way is to read the current url and to simply add my new parameter such as h=5 to the url.
I don't know how to read the current url.
I tried Request.ServerVariables("SCRIPT_NAME") but that didn't include the parameters. i.e. it just returned the default.asp
I got a database with user and email in it. Now I want when a user logs into my page that it automaticly fills in the email into a email form. How can I do that in Asp.
how to modify this script to make the connection to the MS Access database read only, so that writing to the database directory is no more necessary (currently, I have to give IUSR write permissions so that the .LDB file can be created... but I don't need that because I want the database to be read only, and I don't want to grant write permission to IUSR).Code: ---- cst = "Provider=Microsoft.Jet.OLEDB.4.0;" &_ "Data Source=" & Server.MapPath("/database/riviste.mdb") set conn = CreateObject("ADODB.Connection") conn.Mode = 1 conn.open cst strSQL="SELECT * FROM riviste ORDER BY Titolo" set rs=conn.execute(strSQL) ----
I am using file system object to read an xls file in the webserver , the file is located in the webserver I: ( which is map drive of the webserver ) , when i have tested the script in my local pc , where i kept the file in D: ( local drive in my pc ) it wokred fine , but when i tried in webserver it says path not found ( the web server is Windwos NT based )
this is the path which i am using in a script "I:" & "" & 123456 & "my folder"
what i found that if i use only I:123456 it is able to reach to that folder , but after that its unable but if i rename "my folder" to "myfolder" it reaches that means not able to read the spaces in folder name
I want to read and write key'ed cookies from both javascript and ASP. I can't find any javascript that reads and writes cookies with keys, so that it is compatible with ASP like the following:
I am trying to read string from a .rtf document using asp and then displaying it in IE. I am getting all the rtf tags along with the string that I am trying to read. Please shed light on how to read the rtf string into the IE without losing the string formatting.
and my link is <A href='register.asp?ret_page=<% =request("ret_page") %>
But the ret_page appears as /vfolder/Content.asp?ContentID=700. How would I get rid of the /vfolder/ and just have the content.asp?contentID=700 alone.
I'm getting read only error while executing an asp script which updates ms-access db. I have given all the read & write permissions to the db & yet it is giving me that error. Here it is :
Error Type: Microsoft JET Database Engine (0x80040E09) Cannot update. Database or object is read-only. /secr/tender/tlogin.asp, line 160
How can I make all the fields on my form read only based on a users logon account? I have field in my Microsoft Access table that is yes/no for read only access. Now how do I read from that field and code my ASP file.
i recently just uploaded an access database only to find that it has read only persmission, so any adding, updating, deleting etc.. doesn't work anymore. the file became read only when i uploaded it. How do i change the read/write access to this file online?
I have form which displays a customer record and a datagrid of that customer's orders. I want to read the value of the OrderID (which is the keyfield), write it to a session variable, redirect to another form where I read the session variable and display the order detail. How do I read the OrderID value when the user clicks on a select button in a particular row of the datagrid?