In Notes client I’m trying to attach a file from an URL into a rich text field:@Command([EditInsertFileAttachment];“http:////URL//FileName”)
This obviously doesn’t work. I get an error message saying the file doesn’t exist. I tried the same with LotusScript with the EmbedObject method and this resulted in the same error message if I try to specify an URL as the file path.
Is it possible to specify an URL path in the above-mentioned formula or does it have to be a DOS path? If it is possible, what syntax should I use? If it is not possible, are there any other options to import the web-based file into a rich text field?
Many thanks,
Marc
Subject: EditInsertFileAttachment
Change the “http” to “file”. example…
@Command([EditInsertFileAttachment];“file://URL//FileName”)
Subject: RE: EditInsertFileAttachment
Thanks for your response. Unfortunately this didn’t work for me. I still get the error message:
file does not exist: file:/urllink/filename
The test URL I’m using is:
@Command([EditInsertFileAttachment];“file://members.chello.nl//m.dekleijn2//2004030701.jpg”);
Subject: EditInsertFileAttachment
You have to separate out the two parts. You can’t attach from the web, so you need to first retrieve from the web, then attach. I have used WinInet calls to do this retrieval before, but I did it in C, so I don’t have any handy example for LotusScript.