0 pts.
 Copy Contents
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 ibmlotusadmin@tkm.co.in Regards Krishnan Unni

Software/Hardware used:
ASKED: August 4, 2006  9:52 AM
UPDATED: August 7, 2006  2:58 AM

Answer Wiki:
Krishnan, 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. ExitHere: Set lDoc = Nothing Set lWrk = Nothing Exit Sub ErrorHandler: 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! Charles
Last Wiki Answer Submitted:  August 4, 2006  11:30 am  by  CharlesJC   0 pts.
All Answer Wiki Contributors:  CharlesJC   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 

Hi

Nice reply but just to add some tip.
The purpose of the new memo is ?/
1.To allow the user to print
2.to 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 doc.save then open the document using uiworkspace classes

HTH
regards
devang

 0 pts.