Extract file in Web

Hi everyone, Can anyone help me out on this. I need to extract an embedded object from a field. This works fine for the client but the method “ExtractFile” of NotesEmbeddedObject class isnt working on the web.

Can anyone give a solution how to extract an embedded object for web?

Thxs in advance

vednah

Subject: Extract file in Web

If you know the name of the attachment, just use:Dim attachment As NotesEmbeddedObject

Set attachment = doc.getAttachment(fileName)

If you don’t know the name, and just want the first attachment, use:

Dim attachment As NotesEmbeddedObject

Forall item In doc.items

If item.type = ATTACHMENT Then

	Set attachment = doc.getAttachment(item.values(0))

	Exit ForAll

End If

End Forall

  • Johan

johan@kanngard.net

http://dev.kanngard.net