Copy Contents

Lotus Domino
Platform Issues
Dear All... I need an urgent help. I'm creating a form.. where in the users will type the contents in the form. The form is nothing but a softcopy of a official letter. The form also has a letter header embedded into it. There is button called create memo. When they click on create memo button.. all the contents including the letter head should be copied on to the new memo. Can anyone give the lotus script for this. I'm very new to lotus programming. I'm into hardcore administration. Now due to the requirements from the client I myself have to do some sort of programming, since there are no lotus programmer available with this client. So could any one help me out. Pls send the script to Regards Krishnan Unni

Answer Wiki

Thanks. We'll let you know when a new response is added.


The following code will send the current form, and its contents, to the people listed in the SendTo, CopyTo, and BlindCopyTo fields of the document.
‘*******Start of code************
Sub Click(Source As Button)
Dim lWrk As NotesUIWorkspace
Dim lDoc As NotesUIDocument

On Error Goto ErrorHandler

Set lWrk = New NotesUIWorkspace
Set lDoc = lWrk.CurrentDocument

‘lDoc.Send ‘This requires the receipient to have access to the form that was used.
Call lDoc.Save ‘Needed to set the Form property
lDoc.Document.Subject = “LotusScript E-mail Testing.”
Call lDoc.Document.Send(1) ‘This attaches the form to the message.

Set lDoc = Nothing
Set lWrk = Nothing

Exit Sub

Messagebox “Error: ” & Err & Chr(10) & Error & ” occurred on line ” & Erl,, “E-mail Testing Error”
Resume ExitHere
End Sub
‘***********End of code***********

Note: The form and its contents are used as the body of the message.

Hope this helps!


Discuss This Question: 1  Reply

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Devangvnb
    Hi Nice reply but just to add some tip. The purpose of the new memo is ?/ 1.To allow the user to print mail to another user If its the second one the reply before me will serve the purpose if not then use backend classes like createdocument and copyrtiitem and computewithform to create the document with new memo .Save it using then open the document using uiworkspace classes HTH regards devang
    0 pointsBadges:

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.


Share this item with your network: