If I understand your question correctly: you have stationery in your mail file, and you'd like to somehow turn it into a file. Then you want to mail the file to someone as an attachment in an e-mail message. The e-mail message also contains a button that they would click to install the stationery into their own mail file. Is that correct?
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
You can do this -- there are a couple of ways. The easiest way to take a Notes document and package it for shipment is via the NotesDXLExporter. Convert the document to DXL and store that in a file. Then, in your button code, extract the file attachment to a file in the user's temp directory and use the NotesDXLImporter to create a new Notes document out of it. Since the stationery document contains a username in some fields, you will also want to modify the document and change your name to the name of the user who pressed the button. Since the stationery folder is really a view, you don't have to do anything special to get the new stationery to appear in that view -- if it has the right field values it will be there automatically.
Choice 2, if you prefer not to use a file, is to place the DXL into a hidden non-summary field in the memo. This information would not be visible to the user, but a button in the body field of the memo could read the text from it and process it using the NotesDXLImporter.
Another way is to just write button code to automatically create the document you want by coding values for all the fields. This tool will take a stationery document in your mail file and automatically generate the code you would need to duplicate it. However, it doesn't write the code for rich text, and not all rich text is possible to produce via LotusScript. So, you'd have to code that part yourself if it was possible at all.
Another possibility, if you can assume the users all have access to your network, is to store the stationery document in a database to which everyone has reader access. Then, you can write your button code to fetch it from that database and copy all the fields to a new document you create in the user's mail file, again modifying certain fields to contain the user's name instead of yours.
Do you have comments on this Ask the Expert question and response? Let us know.
Dig Deeper on XML and Web Services for Lotus Notes Domino
Related Q&A from Andre Guirard
Learn how you can use LotusScript and OLE to create and populate Microsoft Excel spreadsheets, as well as a little bit about Lotus Symphony.continue reading
Discover options you can use if you'd like external users to be able to access a workflow-based Notes Domino application through different ...continue reading
Learn why you may receive the error message: "Illegal circular use: Audit Trail" when trying to open Lotus Notes documents that use copied forms.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.