<!--QuoteBegin-Medevic+11:01:2006, 16:27 -->
<span class="vbquote">(Medevic @ 11:01:2006, 16:27 )</span><!--QuoteEBegin-->Сам документ с копией другого создаешь через @Command([ComposeWithReference]; "" ; "имя формы" ; 1 + 2).
[snapback]29187" rel="nofollow" target="_blank[/snapback]
[/quote] ne ponyala...
A voobsche vot kod knopki:
Sub Click(Source As Button)
Dim wks As New NotesUIWorkspace
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim mdoc As NotesDocument
Dim rt As NotesRichTextItem
Set db=wks.CurrentDatabase.Database
Set doc=wks.CurrentDocument.Document
Set mdoc=db.CreateDocument
Dim tdoc As NotesDocument
Set tdoc=db.CreateDocument
Call doc.CopyAllItems(tdoc,False)
tdoc.form="Notice_Memo" --->eto forma, kotoraya dolgna kopirovatsya v otvete
Set rt=mdoc.CreateRichTextItem("Body")
Call tdoc.RenderToRTItem(rt)
mdoc.form="Memo"
Call mdoc.Save(True,False)
Call wks.EditDocument(True,mdoc,False)
End Sub