This forum is closed to new posts and
responses. The content has been migrated to the Digital Solutions Community. Please join us there for new content as well as this content. For customer support, please visit the official HCL customer support channels below:
The 'native ability' of Notes to edit an attachment,...
...as you put it, really does detach the file behind the scenes. When you save the document in Notes, it re-attaches the file. (What it fails to do, unfortunately, is saving the file on the application level before it gets re-attached. That's why changes get lost unless the user was wise enough to save the file manually from the application's menu, before saving the document in Notes. IMO, that's a show stopper for many average users.)
The code behind your button could do the following:
1. Detach the file to the current user's temp folder.
2. Launch Word, open the file.
From the QuerySave event of the form:
3. Detect if the file is still open in Word. If so, run Word's Save command.
4. (Optionally, if applicable) Close the file in Word.
5. Re-attach the file.
Steps 2 through 4 require COM to remote-control Word. I assume you are more or less familiar with that. If not, I bet there must be plenty of examples out there, demonstrating how to use COM for controlling Word from LotusScript or other VBA-like scripting languages.
Feedback response number JSAK8QYE5C created by ~Tip Zekjumitexakol on 01/29/2012