I have created a web based application and I am trying to import a .txt file from the users local drive. If I throw the files on the servers local drive it works fine, but I need it to come from the users drive. Here is the code I have…
Dim session As New NotesSession
Dim db As NotesDatabase
Dim dc As NotesDocumentCollection
Dim doc As NotesDocument
Dim stream As NotesStream
Dim pathname As String
Dim StudentDoc As NotesDocument
Set Doc = session.DocumentContext
Set db = session.CurrentDatabase
Set stream = session.CreateStream
REM Use name of text file as subject
pathname = "C:\Path\"
FileName = doc.FieldName(0) & ".txt"
pathname = pathname & FileName
'Check to see if file as ASCII
If Not stream.Open(pathname, "ASCII") Then
Messagebox pathname & stream.CHARSET,, "Open failed"
Exit Sub
End If
I can’t get past this If statement obviously because it isn’t finding the file. Does anybody have ANY clue as to how this can be done.
Thanks In Advance…