RT.
我想用.net连接Lotus的names数据库,可是总是报错,代码:
NotesSession s=new NotesSession ();Domino.IDatabase db;Domino.NotesView view;Domino.NotesDocument doc;string pServer = "" ;
string pDbFileName = "names.nsf" ;//库名称
string pPassword = "11111111" ;
string pNotesView = "$Users" ;//$Users是一个视图的名字s.Initialize (pPassword);db=s.GetDatabase (pServer,pDbFileName,false);view=db.GetView(pNotesView);doc=view.GetFirstDocument();//这句报错:未将对象引用设置到对象的实例(估计是没读到这个视图)Response.Write(doc.GetFirstItem("test"));请问哪位有读取Lotus的例子给个?
我想用.net连接Lotus的names数据库,可是总是报错,代码:
NotesSession s=new NotesSession ();Domino.IDatabase db;Domino.NotesView view;Domino.NotesDocument doc;string pServer = "" ;
string pDbFileName = "names.nsf" ;//库名称
string pPassword = "11111111" ;
string pNotesView = "$Users" ;//$Users是一个视图的名字s.Initialize (pPassword);db=s.GetDatabase (pServer,pDbFileName,false);view=db.GetView(pNotesView);doc=view.GetFirstDocument();//这句报错:未将对象引用设置到对象的实例(估计是没读到这个视图)Response.Write(doc.GetFirstItem("test"));请问哪位有读取Lotus的例子给个?
Lotus数据库应该也能用oledb驱动的
怎么不用Connection???
Lotus数据库应该也能用oledb驱动的
-----------------------------------------------------------------------
能说的具体点吗,有没有例子?连上了names,不会读...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDataOleDbOleDbConnectionClassConnectionStringTopic.asp?frame=trueODBC方式
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDataOdbcOdbcConnectionClassConnectionStringTopic.asp?frame=true
可以查找各类连接字符串的网站
http://www.connectionstrings.com/