I was using the following code earlier:
"--Set rtitem = New NotesRichTextItem ( memo, "Body" ) --Set object = Curdoc.GetAttachment( strvar$ ) 'Extract to C:Temp from web doc and create the attachment back to doc --Call object.ExtractFile ( "c:Temp" &strvar$) --Set o = rtitem.EmbedObject ( EMBED_ATTACHMENT, "", "c:Temp"&Strvar$)"but it seems that I do not have access on the server to run a unrestricted agent. Can the same be accomplished without File I/O?
Your best bet is to have the background agent signed with an ID that will allow it to execute the file commands. Your code uses a file object, but the other option is to use a OLE object. It is very unlikely that you will be able to have the applications needed for this available on the server. The file option requires no other software, just the correct permissions. In addition, you should add a line of code to delete the file from the server.
Dig Deeper on Web Development for Lotus Notes Domino
Related Q&A from Brian Mahoney
Find out what types of calculations can be computed for a column in a Lotus Notes view and the best way to go about it with this expert response. Continue Reading
Find out why you can't use Formula language to include a doclink to a specific Lotus Notes view or database and need to use LotusScript instead. Continue Reading
Discover the reasons behind a Notes/Domino admistrator having trouble with disabled options in the "customize this view" section of his Lotus Notes ... Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.