Copy Contents

0 pts.
Tags:
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 ibmlotusadmin@tkm.co.in Regards Krishnan Unni
ASKED: August 4, 2006  9:52 AM
UPDATED: August 7, 2006  2:58 AM

Answer Wiki

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

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

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Devangvnb
    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 pointsBadges:
    report

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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

Following