.
HCLSoftware Business Partner
Domino Consulting Services
CRUCIAL Notes Tools
+1
212-599-2048
Domino Consulting Services
CRUCIAL Notes Tools
Domino administration
Notes development
Chat now
.
EN - English
CN - 中文
JP - 日本語
DE - Deutsch
FR - Français
BR - Português
RU - Pу́сский
IT - Italiano
IN - हिन्दी
ES - Español
KR - 한국어
ID - Indonesia
NL - Dutch
TR - Türkçe
SA - العربية
SE - Svenska
NO - Norsk
PL - Polski
TH - ไทย
DK - Dansk
MY - Malay
PH - Filipino
GR - Ελληνικά
FI - Suomi
IL - עברית
IE - Gaeilge
CZ - Čeština
UA - Українська
RO - Română
VN - Tiếng Việt
BD - বাংলা
HU - Magyar
Need a Domino Consultant? Call NotesMail +1 212-599-2048
-
HCLSoftware Business Partner
LOTUSSCRIPT/COM/OLE CLASSES
Examples: FormatDocument method
1. This script performs a full-text search on the current database, creates a rendering of the first document in the resulting collection, and mails the rendered document to Susanna Tallan.
Dim session As New NotesSession
Dim db As NotesDatabase
Dim collection As NotesDocumentCollection
Dim newsletter As NotesNewsletter
Dim doc As NotesDocument
Set db = session.CurrentDatabase
Set collection = db.FTSearch( "botany", 0 )
Set newsletter = New NotesNewsletter( collection )
Set doc = newsletter.FormatDocument( db, 1 )
Call doc.Send( False, "Susanna Tallan" )
2. This script performs a full-text search on the current database. For each document in the resulting collection (which contains a maximum of three documents), the script creates a rendering of the document, copies the Subject item of the original document into the rendering, and sends the rendering to Susanna Tallan.
Dim session As New NotesSession
Dim db As NotesDatabase
Dim collection As NotesDocumentCollection
Dim newsletter As NotesNewsletter
Dim doc As NotesDocument
Dim j As Integer
Set db = session.CurrentDatabase
Set collection = db.FTSearch( "botany", 3 )
Set newsletter = New NotesNewsletter( collection )
' for every document in the newsletter's collection
For j = 1 To collection.Count
' create a rendering of the original document
Set doc = newsletter.FormatDocument( db, j )
' copy subject of original document into new document
doc.Subject = collection.GetNthDocument(j).Subject(0)
' send the new document
Call doc.Send( False, "Susanna Tallan" )
Next
See Also
FormatDocument method
Feedback on
Help
or
Product Usability
?
Help on Help
All Help Contents
Feedback on
Help
or
Usability
?
Help on Help
All Help Contents