Domino COM的HTML示例 (轉)

amyz發表於2007-10-14
Domino COM的HTML示例 (轉)[@more@]

下面示例HTML程式碼,可以在頁上Notes。
注意:使用時客戶端需要有Notes.ini及ID



Initialize Session
<BR>Sub Button1_OnClick<BR>&nbsp; dim s, dir, <BR>&nbsp; Set s = Create("Lotus.NotesSession")<BR>&nbsp; Call s.Initialize<BR>&nbsp; Set dir = s.GetDbDirectory("")<BR>&nbsp; Set db = dir.GetFirstDatabase(1247)<BR>&nbsp; dbString = db.Title<BR>&nbsp; dbCount = 1<BR>&nbsp; While Not (db Is Nothing)<BR>&nbsp; If dbCount > 12 Then<BR>&nbsp; MsgBox dbString,, "Databases on " + dir.Name<BR>&nbsp; dbString = db.Title<BR>&nbsp; dbCount = 1<BR>&nbsp; Else<BR>&nbsp; dbString = dbString + Chr(10)<BR>&nbsp; dbString = dbString + db.Title<BR>&nbsp; dbCount = dbCount + 1<BR>&nbsp; End If<BR>&nbsp; Set db = dir.GetNextDatabase<BR>&nbsp; Wend<BR>&nbsp; MsgBox dbString,, "Databases on " + dir.Name<BR>End Sub<BR>



Print Databases on Doc






來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10752019/viewspace-976540/,如需轉載,請註明出處,否則將追究法律責任。

相關文章