Hi all,
In a database of mine I’ve created a button with lotusscript which I want to extract all the attachments in the current document. When I run the script, however, I get this message: ‘Notes Error: Access to data denied’. The part of the script where this is going on is this:
’ Lagrer vedlegget:
Forall o In rtitem.EmbeddedObjects
Call o.ExtractFile (filmappe + eoSource)
Call doc.Save (True, True)
End Forall
The variable ‘filmappe’ is giving the full path in which the file should be saved.
If you have eny idea why I get this error, be kind to let me know.
Thank you very much in advance.
Jo
Subject: Notes Error: Access to data denied
where does filmappe point to? make sure user as access to that location. Run the script through debug and check the string produced by (filmappe + eoSource)
Subject: RE: Notes Error: Access to data denied
Hi Paul,
I’ve tried to change the filmappe variable and I get the error message all the time. I’ve also tried filmappe = "C:\test" where test is a directory. But without success. The same lotusscript writes a log file in the same directory, and this works without problems. I’ve tried to search this forum as well, but not found anything I can use.
Jo
Subject: RE: Notes Error: Access to data denied
just for kicks try “c:\test\” and make sure that the test folder exists on your c drive.
Subject: RE: Notes Error: Access to data denied
Thanks, Paul. I really don’t know what I did. But now it works.
Jo