user1047457
user1047457

Reputation: 1

Need help Exporting Embedded word documents from a Notes database file onto a local windows folder

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

Answers (1)

Jasper Duizendstra
Jasper Duizendstra

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

Related Questions