Краткие тезисы обсуждения со ссылками на ключевые ответы появятся здесь.
Ключевые ответы обсуждения и их оценка появятся здесь.
Участники с сильными ответами в этой теме появятся здесь.
Dim ws As New NotesUIWorkspace
Dim session As New NotesSession
Dim stream As NotesStream
Dim exporter As NotesDXLExporter
Dim doc As NotesDocument
Dim rtItem As NotesRichTextItem
Set stream = session.CreateStream
Set exporter = session.CreateDXLExporter
'** get a NotesDocument somehow, then...
Set doc = ws.CurrentDocument.Document
Set rtItem = doc.GetFirstItem( "Body" )
If Not ( rtItem.Type = RICHTEXT ) Then
Messagebox "Bad!"
Exit Sub
End If
fileName$ = "C:\" & doc.NoteID & ".dxl"
If stream.Open(fileName$) Then
Call stream.Truncate
Call exporter.SetInput( rtItem )
Call exporter.SetOutput(stream)
Call exporter.Process
Call stream.Close
Else
Print "Could not open " & fileName$
End If