Bonjour,Voici le code de recher de fichier et de création de document avec le nom et le fichier attaché.Personnellement je l'ai mis dans une action

rivate Const MAX_PATH = 260Private Const INVALID_HANDLE_VALUE = -1Private Type FILETIME dwLowDateTime As Long dwHighDateTime As LongEnd TypePrivate Type WIN32_FIND_DATA dwFileAttributes As Long ftCreationTime As FILETIME ftLastAccessTime As FILETIME ftLastWriteTime As FILETIME nFileSizeHigh As Long nFileSizeLow As Long dwReserved0 As Long dwReserved1 As Long cFileName As String * MAX_PATH cAlternate As String * 14End TypeDeclare Function FindFirstFile Lib "kernel32" Alias "FindFirstFileA" (Byval lpFileName As String, lpFindFileData As WIN32_FIND_DATA) As LongDeclare Function FindNextFile Lib "kernel32" Alias "FindNextFileA" (Byval hFindFile As Long, lpFindFileData As WIN32_FIND_DATA) As LongSub Click(Source As Button) Call recherchefichier("C:")End SubFunction RechercheFichier(sSearch As String) As String Dim iNum As Long Dim i As Long Dim iDeb As Long Dim hFile As Long Dim tFindFile As WIN32_FIND_DATA Dim bTrouve As Variant Dim sTmpExt As String Dim sExt(3) As String sExt(0) = "XLS" ' Extension Excel sExt(1) = "PPT" ' Extension PowerPoint sExt(2) = "DOC" ' Extension Winword sExt(3) = "MDB" ' Extension Access hFile = findfirstfile(sSearch + "\*.*", tFindFile) bTrouve = hFile <> INVALID_HANDLE_VALUE Do While bTrouve If tFindFile.dwFileAttributes = 32 Or tFindFile.dwFileAttributes = 1 Then pos = Instr(tfindfile.cfilename, Chr$(0)) tmpSearch = Left$(tfindfile.cfilename, pos - 1) sTmpExt = Right$(Ucase(tmpSearch), 3) Select Case sTmpExt Case sExt(0) RechercheFichier = sSearch & "\" & tmpSearch Call CreationDocument(RechercheFichier, Cstr(tmpSearch)) Case sExt(1) RechercheFichier = sSearch & "\" & tmpSearch Call CreationDocument(RechercheFichier, Cstr(tmpSearch)) Case sExt(2) RechercheFichier = sSearch & "\" & tmpSearch Call CreationDocument(RechercheFichier, Cstr(tmpSearch)) Case sExt(3) RechercheFichier = sSearch & "\" & tmpSearch Call CreationDocument(RechercheFichier, Cstr(tmpSearch)) End Select End If inum = inum + 1 bTrouve = FindNextFile(hFile, tFindFile) LoopEnd FunctionSub CreationDocument(sCheminAndFichier As String, sFichier As String) Dim session As New NotesSession Dim db As NotesDatabase Dim doc As NotesDocument Dim rtitem As NotesRichTextItem Dim object As NotesEmbeddedObject Set db = session.CurrentDatabase Set doc = New NotesDocument( db ) Set rtitem = New NotesRichTextItem( doc, "FichierAttacher" ) Set object = rtitem.EmbedObject(EMBED_ATTACHMENT, "", sCheminAndFichier) doc.Form = "Liste Fichier" doc.NomFichier = sFichier Call doc.Save( True, True )End SubJ'ai un masque qui s'appel Recherche avec deux champs NomFichier en texte standard et FichierAttacher en RichText.[%sig%]