Doclink

Hi, I am having this issue:

When I receive a link to a document that is in another db and that db is not bookmarket I receive a message telling that Link doesn’t exist or…, but if I first bookmark the db to my workspace (ctrl+O) and then click in the link there is no problem. The code that I am using is this one

Sub Click(Source As Button)

Dim session As New notessession

Dim db As notesdatabase

Dim workspace As New NotesUIWorkspace

Dim uidoc As NotesUIDocument

Dim L_Doc As NotesDocument

Dim doc As notesdocument

Dim rtitem As NotesRichTextItem



Set db = session.currentdatabase

Set uidoc = workspace.CurrentDocument

Set L_Doc = uidoc.Document



Call L_Doc.Save(True,False)



For i=0 To Ubound(L_Doc.GetItemValue("SendTo"))

	Set doc = New notesdocument(db)

	Set rtitem = New NotesRichTextItem( doc, "Body" )

	Call rtitem.AppendText(L_Doc.GetItemValue("remarks")(0))

	Call rtitem.AddNewLine( 1 )

	Call rtitem.AddNewLine( 1 )

	Call rtitem.AppendText("Please follow this link")

	Call rtitem.AddNewLine( 1 )

	Call rtitem.AddNewLine( 1 )

	Call rtitem.AppendDocLink( L_Doc, db.Title )

	doc.form= "memo"

	doc.sendto = L_Doc.GetItemValue("SendTo")(i)

	doc.subject = "Issue - no. " + uidoc.FieldGetText("no") + " - " + uidoc.FieldGetText("o_headline")

	doc.Body= "Please follow this link"

	Call doc.send(False)

Next

End Sub

Thanks in advance