Reputation: 1
We have a lotus notes 7.0 environment with a Document library (.nsf) database file on the server.
I have a local copy (if that helps) and would like to export all the embedded word documents within to a local windows folder or desktop.
Is this possible ?
There is a software named "Detachit" available to purchase online but is very expensive ($1250 USD), per license and hence would really appreciate if someone can help.
Upvotes: 0
Views: 1735
Reputation: 2617
If you know how to program lotusscript it is actually very easy. From the help:
Dim doc As NotesDocument
Dim rtitem As Variant
Dim fileCount As Integer
Const MAX = 100000
fileCount = 0
'...set value of doc...
Set rtitem = doc.GetFirstItem( "Body" )
If ( rtitem.Type = RICHTEXT ) Then
Forall o In rtitem.EmbeddedObjects
If ( o.Type = EMBED_ATTACHMENT ) _
And ( o.FileSize > MAX ) Then
fileCount = fileCount + 1
Call o.ExtractFile _
( "c:\reports\newfile" & Cstr(fileCount) )
Call o.Remove
Call doc.Save( True, True )
End If
End Forall
End If
Or you can use Java: How do I get all the attachments from a .nsf(lotus notes) file using java
Upvotes: 1