370 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Jobs | Twitter | Bookmarks | Pods | Forum | Blogs | Search | myPL | About 
 
May 23, 2012, 04:19:51 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Calendar Login Register  
Pages: [1]
  Print  
Author Topic: exctract file from domino.doc  (Read 291 times)
0 Members and 1 Guest are viewing this topic.
ghostdogjp
Newbie
*
Offline Offline

Posts: 1


View Profile
« on: October 04, 2010, 12:55:26 PM »

hi , i need a script to save all attachement from a database to disk

the problem is then i working with  domino  5.0 and domino.doc 3.1
i get ther error variant as no onject but i didn't see where is the variant could you help me please

i'm sysadmin and not a developer

Sub Click(Source As Button)
   
   
   Dim w As New NotesUIWorkspace
   Dim session As New NotesSession
   Dim db As NotesDatabase     
   Dim collection As NotesDocumentCollection
   Dim doc As NotesDocument
   Dim v2File As NotesItem
   Dim docitself As NotesEmbeddedObject
   
   
   
   
   On Error Goto ProcessError
   
   Set db = session.CurrentDatabase
   Set collection = db.UnprocessedDocuments
   Set doc = docs.GetFirstDocument()   
'   Set dlgdoc =db.UnprocessedDocuments
   Set v2File=dlgdoc.GetFirstItem(file$)
   filename$=v2File.Values(0)
   Set docitself=dlgdoc.GetAttachment(filename$)
   
   
   FilePath$=("d:\extract\" & filename$)   
   Call docitself.ExtractFile(FilePath$)
   didDetach%=True
   Exit Sub
   
   
ProcessError:
   Messagebox Error$()
   Exit Sub
   
End Sub

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!