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">
> |  
re : Embedded Object
apallua
Ciao, credo che il metodo ExtractFile richieda come parametro il path completo del file destinazione.
Nell\'help del designer c\'è il seguente esempio:

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




Embedded Object - GianClaudio -
    You are here re : Embedded Object - apallua -
        re... : Embedded Object - cyberflaz -
            re... : Embedded Object - GianClaudio -