|
-
Jul 19th, 2001, 05:54 AM
#1
Using ADO\OLEDB for reading a excel file.
Does somebody know if this is possible?
-
Jul 19th, 2001, 10:36 AM
#2
Hyperactive Member
Hmm...
I got this code from a forum buddy of mine that might help you:
Code:
dim wShell
dim FSO
set FSO = CreateObject("Scripting.FileSystemObject")
if FSO.FileExists(FSO.GetSpecialFolder(0) & "\vsl.ini") then
msgbox("%SYSTEM%")
set wShell = WScript.CreateObject("WScript.Shell")
wShell.run("nameoffilehere.xls")
set wShell = nothing
end if
set FSO = nothing
I haven't tried it, but it should help you or at least give you an idea. Good Luck!
-vbuser1976 
VB6 Enterprise SP6
SQL 7.0 SP2
VBScript, HTML, Javascript, C++, a little UNIX
-
Jul 20th, 2001, 02:48 AM
#3
darn..
vbuser1976, your code wont work in ASP .. I need to read excel files in ASP when the user have uploaded the file.
I know how i can upload a file. But i need to know how i can read excel files with ADO without creating a ODBC System Data Source Name (DSN) in windows.
Here is my code in javascript for opening a DSN.
Code:
var objADO = Server.CreateObject("ADODB.Connection");
objADO.Open("ADOExcel");
Where ADOExcel is my current DSN.
-
Jul 20th, 2001, 07:39 AM
#4
Hyperactive Member
????
Ok, I know you probably know this, but just to be on the safe side, the code that I posted for you was in VBscript not Javascript. Now, for the next post you made, I do not think I can help you on this, but there are a bunch of articles on ASP at this site:
4 Guys From Rolla
I am sorry I could not be of further assistance. Maybe someone else in this forum might have a solution, but try the website as well. Good Luck!
-vbuser1976 
VB6 Enterprise SP6
SQL 7.0 SP2
VBScript, HTML, Javascript, C++, a little UNIX
-
Jul 20th, 2001, 08:14 AM
#5
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|