Du musst nichts anderes machen als eine URL in gültiger Syntax an ein RichTextItem anzuhängen.
Beispiel:
Dim session As New NotesSession
Dim dbCurrent As NotesDatabase
Dim doc As NotesDocument
Dim item As NotesItem
Dim rtItem As NotesRichtextItem
Dim szMsg As String
Set dbCurrent = session.CurrentDatabase
Set doc = New NotesDocument (dbCurrent)
doc.Subject = "Doc from " & Cstr (Now)
doc.Form = "RTFForm"
Set rtitem = New NotesRichTextItem (doc, "Body")
szMsg = "http://www.atnotes.de"
Call rtItem.AppendText (szMsg)
Call rtItem.AddNewLine (1)
Call doc.Save (True, False, True)
HTH,
Bernhard
Html ist eine textbasierte Dokumentbeschreibungssprache.
Versuch das mal
Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Set db = session.CurrentDatabase
Dim doc As New NotesDocument(db)
Call doc.AppendItemValue("From", session.UserName)
Call doc.AppendItemValue("Subject", _
"Meeting time changed")
Dim richStyle As NotesRichTextStyle
Set richStyle = session.CreateRichTextStyle
Dim richText As New NotesRichTextItem(doc, "Body")
richStyle.PassThruHTML = True
Call richText.AppendStyle(richStyle)
Call richText.AppendText(|<a href="http://www.javablogs.com/Welcome.action">true men watch here</B>|)
Call doc.Save(True, False)
End Sub
Bin jetzt in der IBM Developer Domain im Forum fündig geworden.
Der Trick ist wohl das "CreateRichTextStyle" und die Aktivierung von PassThruHTML in Lotusscript.
Dim session As New NotesSession
Dim db As NotesDatabase
Set db = session.CurrentDatabase
Dim doc As New NotesDocument(db)
Call doc.AppendItemValue("From", session.UserName)
Call doc.AppendItemValue("Subject", "Meeting time changed")
Dim richStyle As NotesRichTextStyle
Set richStyle = session.CreateRichTextStyle
Dim richText As New NotesRichTextItem(doc, "Body")
richStyle.PassThruHTML = True
Call richText.AppendStyle(richStyle)
Call richText.AppendText("<B>Click the link below</B>")
Call richText.AppendText("<a href=http://www.ibm.com>IBM</a>")
Call doc.Save(True, False)
Danke noch mal für Eure Antworten
Peter