100 pts.
 Adding Signature to memo via LotusScript
I am trying to create a memo via LotusScript, insert some common language with a doc link and extra lines, apply the Signature from CalendarProfile. I have also attempted to use stationary with no luck. Any thoughts would be appreciated.  Then I open the doc up in UI so the client can add more text if they wish.

Software/Hardware used:
8.5.2FP1
ASKED: August 24, 2011  2:34 PM
UPDATED: March 31, 2012  5:46 PM

Answer Wiki:
Use the CreateDocument method on DataBase object Set the Form field to "Memo" Create a Subject field in text and set to whatever you want Create a SendTo fielf in text and set to whoever you want Create a Body field in rich text Append your text and doclink to the Body field Call the EditDocument method on NotesUIWorkSpace object so user can edit the mail. Is it enough ?
Last Wiki Answer Submitted:  August 25, 2011  2:26 pm  by  BruceWayne   4,075 pts.
All Answer Wiki Contributors:  BruceWayne   4,075 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

This is a better way, if you just want the “usual” signature to appear on the Memo:

From your script in the mail-database do the following:

Dim uiws as New NotesUIWorkspace
Dim uidoc as NotesUIDocument
Dim doc as NotesDocument
set uidoc = uiws.ComposeDocument(“”,”Memo”)

- then if you want you can modify the document after creation. This will include the signature.

The following will also create the memo, but without the signature:
set doc = new NotesDocument(db)
set uidoc = uiws.EditDocument(True,doc)

- but then you do not get the signature.

Of course both require a GUI. If you are running from an agent, or script that does have access to this luxury, I do not think you can get the signature.

Best regards,
Jesper

 10 pts.