I have an action in a form that should simply take the document, put it
into a mail document, set the SendTo field, and then let the user put
some text in the document.
I tried to use the Forward method, but I couldn't get the code in the
button to let me set the SendTo field. So I wrote the code below.
If I run it in debug and step through the code, it works. If I just let
it run (either in Debug or out) the mail memo doesn't contain the
document.
This is a real pain in the ass. What the hell am I doing wrong?
Set workspace = New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim maildb As NotesDatabase
Dim mailnote As NotesDocument
Dim doc As NotesDocument
Dim rtitem As NotesRichTextItem
Dim success As Variant
Set uidoc = workspace.CurrentDocument
Set doc = uidoc.document
Set maildb = New NotesDatabase("","")
maildb.OpenMail
Set mailnote = New NotesDocument(maildb)
mailnote.body = doc.body(0)
Set rtitem = New NotesRichTextItem( mailnote, "Body" )
success = doc.RenderToRTItem( rtitem )
mailnote.SendTo = "Bryan Schmiedeler/Walsworth Publishing
Company"
Call workspace.EditDocument(True,mailnote)
Sent via Deja.com
http://www.deja.com/
(It's not important, which form is the default form)
<Bryan.Sc...@Walsworth.Com> schrieb im Newsbeitrag
news:91u3fc$169$1...@nnrp1.deja.com...
I've also read that, when using RenderToRTItem non-activated
hide-when-formulas are executed for objects that are placed in a
layout-region.
To me it seems that they havn't done such a great job when programming this
method ...
If I would have to program somthing that requires use of this method these
days, I simply would state that it's impossible. Too much hastle, too much
frustration.
Philippe
Is there a way to do this using the .Forward method?
In article <91v18i$5jgdj$1...@ID-29934.news.dfncis.de>,