2012-04-26 96 views

回答

0

如果你不知道如何使用類和方法,那麼你不知道他們。這裏是你的首發,我記得從零開始自我介紹,但是一旦掌握了基本知識,它就非常強大。

dim s as new notesSession 'Instantiate a session object 
dim db as notesDatabase 
dim view as notesView 
dim doc as notesDocument 

set db = s.currentDatabase 'This allows you access to the properties of the current database 
set view = db.getView("<Your view name>") 
if not view is nothing then 
    set doc = view.getFirstDocument 

else 
    msgbox "Sorry, can't find view " & <your view name> 
end if 

Lotus Notes是基於一個容器模型,數據庫包含文檔,視圖,代理等,文件包含字段,字段包含具有值等來自外部的開始,然後一路下滑,並開始小件物品。

+0

我沒有得到蓮花Symphony類的幫助內容。 – Aanandaprabhu 2012-04-27 09:49:33

+0

您確實需要發佈您自己的嘗試來使用代碼,並儘可能詳細地詢問您的幫助。 – AndrewB 2012-04-28 10:29:46

1

夠簡單。

  1. 首先創建一個使用聯繫人模板數據庫(或者你可以使用你的聯繫人數據庫。

  2. 創建交響樂團您的文檔。(我只使用了嵌生產力工具注意事項)。

  3. 選擇工具 - >郵件合併。

  4. 是左側出現

    點擊瀏覽,選擇包含聯繫人的NSF文件。

之後,你應該有一個「插入字段」列表出現。您可以將這些添加到您的文檔。

然後點擊「完成合並」並選擇你想要的選項。 (容易然後LS恕我直言)。

...至於LotusScript。以下應該讓你開始。

http://www.ibm.com/developerworks/lotus/library/symphony-toolkit/

+0

剛剛瀏覽了一下developerworks上的工具包,如果您已經使用Lotusscript,它看起來像是一個很好的開始。如果你不是那麼你不應該用它來獲得這種經驗,你會遠離你的深度。 – AndrewB 2012-04-28 10:36:22

0
Dim symdoc As SymphonyApplication 
Set symdoc = New SymphonyApplication 
Dim documents As SymphonyDocuments 
Set documents = symdoc.Documents 
Dim document As SymphonyDocument 
Set document = documents.AddDocument(」",True,True) ‘ Syntax is below 
‘Set document = documents.AddDocument(Template, AsTemplate, Visible) 
Dim range As SymphonyTextRange 
Set range = document.Content.End 
Call range.InsertBefore(」My Symphony document」) 

這是獲取Symphony文檔,示例代碼。現在你可能會有更好的想法。