我这样写:
Dim s As New NotesSession
s.Initialize()
Dim db As NotesDatabase
Dim vw As NotesView
Dim doc As NotesDocument
db = s.GetDatabase("ServerName//Domain", "names.nsf", False)
If Not (db Is Nothing) Then
TextBox1.Text = "success"
Else
TextBox1.Text = "failed to open the db"
End If
运行的结果总是failed to open the db
是什么原因呢?
能否直接读取到 本地的names.nsf这个文件?