I'm building an application (-agent actually-) which should take the attachment of the received mail document and create a new document holding this attachment (usually pdf file) as OLE object.
I have all bits and pieces ready except taking the attachment from inbound maildoc and attaching it to new doc as new OLE object.
*Taking file, saving it to the hard-drive and making OLE object from file on the hd is not working solution at this point. The script is meant to be running as an agent in the server and due to server restrictions in new file writing this will not work.
I already have a solution which transfers the attachment. This is poor solution for my case because it is essential to preview the doc when document is opened. With OLE implementation this could be easily done.
Here's the actual codepart which needs to be altered
'get the rich text field (where the attachment is)
Set body = doc.GetFirstItem("Body")
Set ndoc = New NotesDocument ( db )
ndoc.form = "NEWFORM"
'copy this to the new doc
Call ndoc.CopyItem( body, "Body" )
'save new doc etc...
Oh. and my client/servers are 8.0. Also 7.0 solutions or older will do. Thank you very much! Also java may be ok.
April 2, 2008 11:39 AM
June 4, 2008 12:46 PM