Hi
I am trying to open file resource in notes client thru lotuscript by entering the /Databasename.nsf/FileName.html?OpenFileResource, but it is not opening it up. It gives msg File Not Exist.
Please suggest what I am doing wrong
Thanks
Hi
I am trying to open file resource in notes client thru lotuscript by entering the /Databasename.nsf/FileName.html?OpenFileResource, but it is not opening it up. It gives msg File Not Exist.
Please suggest what I am doing wrong
Thanks
Subject: Please show us the code itself
and also let us know if you are running from server
Subject: RE: Please show us the code itself
HTMLFilePath="/databasename.nsf/HTMLFileName.html?openfileresource"I am using uidoc.import(“HTML File”, HTMLFilePath). And HTMLFile is already there in Shared Resources-Files
If I use HTMLFilePath=“C:\temp\filename.html” then it is very well picking it up. but it is not picking from .nsf.
Subject: RE: Please show us the code itself
“/databasename.nsf/HTMLFileName.html?openfileresource” is not a file name. It’s the URI of a resource to be retrieved using HTTP. This can never work.
You could try your luck with DXL, as Andrei suggested, but if you want to use this piece of HTML as a kind of stationary, it would be a heck of a lot easier to simply store it in a document. However, the uidoc.Import method will always only work with files on disk, so you had to detach it anyway.
Subject: Opening File Resource in Notes Client
I am not sure if it is possible to programmatically show “Image/File Insert” dialog box. Even if it was possible, I doubt that you could specify a resource as parameter.
A solution can be to use DXL functionality and create a temporary document containing embedded file/image resource. Then (programmatically) open the temp document in UI, copy the body field from there into clipboard and then paste the clipboard’s content to the current document.
/Andrei
Sametime goes AJAX: Botstation - Sametime Widget Overview
Subject: Opening File Resource in Notes Client
i hope this answer fits to your query
if you are trying to open resoures that should reside in your database if else you will get the message what you said…
Subject: RE: Opening File Resource in Notes Client
The file is already stored in Shared Resources-Files. still it is giving the same message.