This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Jun 27, 2014, 8:30 AM
18 Posts

Doclink to External Document

  • Category: Domino Designer
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags: Doclink,url
  • Replies: 3

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.

 

Jun 27, 2014, 11:39 AM
46 Posts
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 )
Jun 27, 2014, 1:59 PM
18 Posts
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?

Jun 27, 2014, 1:59 PM
18 Posts
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?


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal