제가 코딩한 것입니다. 한 번 봐주시고, 이거면 안 된다든지...다른 해결책이
있으시면 도와 주십시오....
부탁드립니다...
================================================================
set uploadform=server.CreateObject("DEXT.FileUpload")
uploadform.DefaultPath="E:\WebHome\LGT 분석 시스템\UserArea\DEXTUpload\File"
FileName = uploadform.Save
vbvStrConn = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & FileName & ";Extended Properties=Excel 8.0;"
Set rdConnFile = Server.CreateObject("ADODB.Connection")
rdConnFile.Open vbvStrConn
Set rdRstExcel = server.createobject("ADODB.recordset")
vbvSqlExcel = "Select * from [Sheet1$]"
With rdRstExcel
.Source = vbvSqlExcel
.ActiveConnection = rdConnFile
.CursorType = adOpenKeySet
.LockType = adLockReadOnly
.CacheSize = 100
.Open
End With
' 읽어 오는지 테스트 삼아 액셀 row수를 찍어 봤습니다....
Response.Write "액셀 로 수..." & vbvCount & " <br>"
이렇게 했는데..페이지를 찾을 수 없다라는..메시지만 나옵니다...
방법을 가르쳐 주세요....부디...제발.....ㅠ.ㅠ
다음은 Excel을 DB 처럼 읽고 쓸수 있는 방법에 대해 설명 한 자료입니다.
참고 하시기 바랍니다.
SAMPLE: ExcelADO Demonstrates How to Use ADO to Read and Write Data in Excel
Workbooks
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q278973&
감사 합니다
"SuKyoung Choi" <suk...@lgcns.com> wrote in message
news:#vf8q5uhCHA.3708@tkmsftngp08...
업로드와 동시에 파일을 열려고 하시는군요. 먼저 파일이 완전히 업로드됐는지
확인하셔야 할듯합니다. dext라는 업로드 프로그램이 동기적/synchronous로
동작한다면 업로드가 완료되기 전에는 다음 코드가 실행되지 않습니다. 그러므로
다음 문제만 생각하면 되는데, 아니라면 문제가 좀 복잡해지겠습니다.
--
Han Pohwan, Microsoft MVP, Seoul, Korea
Mail with any alphabets in the title will be removed. Use only numbers.
"SuKyoung Choi" <suk...@lgcns.com> wrote in message
news:#vf8q5uhCHA.3708@tkmsftngp08...