Can anyone suggest a method in Lotus Script to create a Doclink or Hyperlink to an external file, say C:\temp\myfile.doc.
I have been trying without success using NotesRichTextDocLink. Any help would be much appreciated.
Can anyone suggest a method in Lotus Script to create a Doclink or Hyperlink to an external file, say C:\temp\myfile.doc.
I have been trying without success using NotesRichTextDocLink. Any help would be much appreciated.
Subject: Create Doclink to External File
Thanks Ricardo. I am trying to create a doclink that appears the same way as when you manually choose Create>Hotspot>URL or Create>Hyperlink but can’t seem to find a way to do it?
Subject: Create Doclink to External File
Thanks Ricardo. I am trying to create a doclink that appears the same way as when you manually choose Create>Hotspot>URL or Create>Hyperlink but can’t seem to find a way to do it?
Subject: Would this work
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim rtitem As NotesRichTextItem
Dim object As NotesEmbeddedObject
Set db = session.CurrentDatabase
Set doc = New NotesDocument( db )
Set rtitem = New NotesRichTextItem( doc, “Body” )
Set object = rtitem.EmbedObject _
( EMBED_ATTACHMENT, “”, “C:\temp\myfile.doc”)
doc.Form = “Main Topic”
doc.Subject = “Document Link”
Call doc.Save( True, True )