我想使用lotusscript创建lotus symphony mail-merge。我知道所有的方法和类,但不知道如何使用这些类和methods...Pls好心有人帮助我吗?
发布于 2012-04-27 15:30:08
很简单。
在此之后,您应该会看到一个“插入字段”列表。您可以将这些内容添加到文档中。
然后点击“完成合并”并选择你想要的选项。(比LS IMHO更简单)。
..。至于LotusScript。下面的内容应该可以让你开始学习。
http://www.ibm.com/developerworks/lotus/library/symphony-toolkit/
发布于 2012-04-27 04:38:50
如果您不知道如何使用类和方法,那么您根本就不了解它们。这是给你的入门,我记得我从头开始自学lotusscript,但一旦你掌握了基础知识,它就会非常强大。
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 ifLotus notes基于容器模型,数据库包含文档、视图、代理等,文档包含字段,字段包含具有值的项等。
发布于 2012-05-04 12:24:17
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文档的示例代码。现在你可能会有一个更好的想法。
https://stackoverflow.com/questions/10328636
复制相似问题