I need to send an e-mail with the data from within an entire form, including the actual form layout. I cannot send a doclink b/c it is going outside my organization. Any ideas? Thanks!
Subject: Attaching a form - not as a link
If this is a one-off issue, just open the document in read-only mode (you can use Ctrl+E to toggle in and out), select the parts of the document you want, copy the selection to the clipboard, and paste the results into the rich-text field of a new memo, then send.
If you need to do this regularly, then you’re probably looking at building a rich-text field via LotusScript.
Rupert Clayton
Chicago
Subject: RE: Attaching a form - not as a link
This is more complicated. This is a Records Management app. I will be in a view with several records checked. I will be running an agent against these checked items asking that they be returned from an external storage facility. I need to send the request through e-mail using the layout that the facilty has devised. I created a new form within my app with their layout. As I process the record in my db I pull fields off to create this new form. I need to send the new form to the facility. It can’t be a link b/c they can’t get through to my db. I tried using Embedded objects with no luck. I also tried writing the new form out as an RTF to my hard-drive but I can’t get that to work, either. It appears that it needs to be a uidoc. If I could write it out, then I could attach this new file to my e-mail.
Subject: RE: Attaching a form - not as a link
Have you tried using the parameter in doc.Send to attach the form? It is boolean.
Call notesDocument.Send( attachForm [, recipients ] )
You’d have to experiment since it sounds like you’re using an alternate form, so you might just need to change the value of doc.Form to the alternative form before you send it.
Subject: RE: Attaching a form - not as a link
I don’t know that that would work, since presumably the recipient, on a different mail system, wouldn’t have the form available to them.
You could use NotesDocument.RenderToRTItem to put a copy of the document into the body rich text item on your programmatic email.
Subject: RE: Attaching a form - not as a link
Thanks, Esther! The RenderToRTItem worked.
Subject: RE: Attaching a form - not as a link
Interesting idea, I’ll have to remember that one.
I think I was thinking of StoreFormInDocument instead of an attachment - brain cramp!
Subject: Attaching a form - not as a link
Open the document or select it in a view and go to the Actions menu and choose Forward. This will place a copy of the entire document in your email.