Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Accessing a Doclink by Lotus Script

144 views
Skip to first unread message

Jan Altmann

unread,
Aug 14, 2000, 3:00:00 AM8/14/00
to
Hi,

does anybody knows how i can access a Doclink (included in a RichText-Field)
by Lotus Script ?
I have the following problem :
When i open the document by using the backend-classes and looking the
variables in the script-debugger, i can't see that there is an included
doclink - but it is there. How can i get the information which are stored in
that link ? I want to get some information (field values) from the linked
document by using backend-functions - i don't want to open it in frontend.
Can anybody help me ?

Thanks

u...@itcs.kiev.ua

unread,
Aug 15, 2000, 3:00:00 AM8/15/00
to
Jan Altmann wrote:

See NotesEmbeddedObject class in the Help
You should do something like this:

Dim doc As NotesDocument
Dim rtitem As Variant
'...set value of doc...
Set rtitem = doc.GetFirstItem( "your RichText-Field" )
If ( rtitem.Type = RICHTEXT ) Then
Forall o In rtitem.EmbeddedObjects
If ( o.Type = EMBED_OBJECTLINK ) Then
'...do what you want
End If
End Forall
End If

Regards,
Victor

Steve K

unread,
Aug 15, 2000, 3:00:00 AM8/15/00
to
Doclinks are not NotesEmbeddedObjects, so I'm afraid this method won't work
(it's for OLE objects).

I don't know of any useful way to work with doclinks in a rich text field.
Perhaps Genii's LSX includes this functionality? They might also be visible
through the C API.

--Steve

<u...@itcs.kiev.ua> wrote in message news:p3nan8...@itcs.kiev.ua...

u...@itcs.kiev.ua

unread,
Aug 16, 2000, 3:00:00 AM8/16/00
to
Steve wrote:

> Doclinks are not NotesEmbeddedObjects, so I'm afraid this method won't
work
> (it's for OLE objects).
>
> I don't know of any useful way to work with doclinks in a rich text
field.
> Perhaps Genii's LSX includes this functionality? They might also be
visible
> through the C API.
>

> [...]

Here is some info from notes help:

EmbeddedObjects property

Defined in
NotesRichTextItem
Data type
Array of NotesEmbeddedObjects
Syntax
To get: notesEmbeddedObjectArray = notesRichTextItem.EmbeddedObjects
Usage
This property includes OLE/1 and OLE/2 embedded objects and object links
as well as file attachments.
If you need access to OLE/2 embedded objects that exist in a document but
are not part of a rich-text item (for example, because the object was
originally created on the document's form), use the EmbeddedObjects
property in NotesDocument.
___________________________
Or maybe i didn't understand clearly your question?

Victor

Steve K

unread,
Aug 16, 2000, 3:00:00 AM8/16/00
to
The original poster asked about doclinks... (i.e., what's on the clipboard
when you go Edit -> Copy as Link -> ... )
Doclinks are not object links. They are not embedded objects.

--Steve

<u...@itcs.kiev.ua> wrote in message news:9ecdn8...@itcs.kiev.ua...

W.Flamme

unread,
Aug 18, 2000, 3:00:00 AM8/18/00
to
Jan Altmann <Jan.A...@t-online.de> schrieb in im
Newsbeitrag: 8n8llc$nco$10$1...@news.t-online.com...

> does anybody knows how i can access a Doclink (included in
a RichText-Field)
> by Lotus Script ?

MIDAS.LSX extension by Geniisoft or Notes C/C++ API

--

Wolfgang Flamme
wfl...@mainz-online.de


0 new messages