C#怎样连接domino并读取里面的数据?
请问各位大哥,C#怎样连接domino的nsf数据库,并读取里面的数据啊?
哪位能给出一个简单的代码例子?
我这样写:
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这个文件?