Skip to main content
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:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

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

Is there any way to launch a (hidde... (~Wei Asatoopula... 25.Jan.12)
. . Event on Form (~Hal Fronilitob... 27.Jan.12)
. . . . Yes, I am familiar with form events... (~Wei Asatoopula... 29.Jan.12)
. . Here's how you do it... (~Patti Brelukon... 31.Jan.12)
. . . . Cheers Mat! (~Wei Asatoopula... 1.Feb.12)
. . The 'native ability' of Notes to ed... (~Fred Asatumibu... 29.Jan.12)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS