Dim rtitem As NotesRichTextItem
Set rtitem = RemoveAttachments(doc, "body")
Call doc.Save(True,False,True)'установить прочитанным
' fname=Replace(fname,{\},{/})
fname=Replace(fname,{/},{\})'Windows specific
If ( rtitem.Type = RICHTEXT ) Then
Call rtitem.EmbedObject( EMBED_ATTACHMENT,{} , fname, fnam(0))
Call doc.Save(True, False)
If worddoc Is Nothing Then
Dim res, run As String
'run={cmd.exe /C start "} &fname &{"}
run={cmd.exe /C ""} &fname &{""}
Print {Shell calling...}, run
res=Shell(run, 6)
End If
End If