
Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
Thanks Doug. I saw this post, but didn't think it would work with COM, but
I'm not very experienced with it. If I follow the directions at the site to
install the addin, will it have COM objects exposed for my use in Notes?

Signature
Annette
> See the "Individual Merge Letters" item on fellow MVP Graham Mayor's website
> at:
[quoted text clipped - 28 lines]
> >
> > Annette
Doug Robbins - Word MVP - 20 Jan 2006 04:54 GMT
Sorry, I can't help there. It is not something that I know anything about.

Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
> Thanks Doug. I saw this post, but didn't think it would work with COM, but
> I'm not very experienced with it. If I follow the directions at the site
[quoted text clipped - 39 lines]
>> >
>> > Annette
Peter Jamieson - 20 Jan 2006 09:09 GMT
What you probably need to do is convert the code at the bottom of the
article ("Print individual merge letters from a merged document - doing it
the old way") into Lotusscript or whatever it is you are using. I can't help
with that conversion as I don't know Lotusscript.
Or you can try converting the following VBA (which does one merge for each
record in the data source) into Lotusscript.
Sub ProduceOneDocPerSourceRec()
Dim intSourceRecord
Dim objMerge As Word.MailMerge
Dim strOutputDocumentName As String
Dim TerminateMerge As Boolean
' Need to set up this object as the ActiveDocument changes when the ' merge
is performed. Besides, it's clearer.
Set objMerge = ActiveDocument.MailMerge
With objMerge
' If no data source has been defined, do it here using OpenDataSource.
' But if it is already defined in the document, you should not need to
define it here.
' .OpenDataSource _
' Name:="whatever"
intSourceRecord = 1
TerminateMerge = False
Do Until TerminateMerge
.DataSource.ActiveRecord = intSourceRecord
' if we have gone past the end (and possibly, if there are no records)
' then the Activerecord will not be what we have just tried to set it to
If .DataSource.ActiveRecord <> intSourceRecord Then
TerminateMerge = True
' the record exists
Else
' while we are looking at the correct activerecord,
' create the document path name
' e.g. something like the following, but in this case
' each lastname must be unique (and must not contain
' characters that are not allowed in a file name)
strOutputDocumentName = _
"c:\mymergeletters\_" & _
.DataSource.Datafields("lastname").Value & _
" letter.doc"
.DataSource.FirstRecord = intSourceRecord
.DataSource.LastRecord = intSourceRecord
.Destination = wdSendToPrinter 'please check the constant name
.Execute
' The Activedocument is always the output document
' Add any parameters you need to these calls
ActiveDocument.SaveAs strOutputDocumentName
ActiveDocument.Close
intSourceRecord = intSourceRecord + 1
End If
Loop
End With
End Sub
Peter Jamieson
> Thanks Doug. I saw this post, but didn't think it would work with COM, but
> I'm not very experienced with it. If I follow the directions at the site
[quoted text clipped - 39 lines]
>> >
>> > Annette