Hi All,
I would like to have some ideas about how to extract the link information from the rich text field in a document.
The link info like: Mailto:Pritisharma@rediff.com or any other document id from the doc link stored.
Hope i am clear with the inputs.
Regards,
Priti.
Subject: Extraction of Links from RichText
These are URL links, which are somewhat difficult to get from LotusScript, even in Notes 6. You can either dump the rich text to DXL and parse the DXL to find the URL links, which is fairly easy if you have any XML skills, or you can use a third party product such as our Midas Rich Text LSX, which would use code such as:
Call rtitem.ConnectBackend(doc.Handle, “Body”, True)
Set rtchunk = rtitem.DefineChunk(“URLLink 1”)
While rtchunk.Exists
link = rtchunk.LinkURL
’ *** Do whatever you want with each link, either using the value or changing it as you wish
rtchunk.GetNextTarget
Wend
My guess is that if you don’t want to change the URL link, you should just figure out the DXL approach, as it is free and not too difficult. If you want to change the values, you would be better off getting the product, as it would require, but that is just my opinion.
Subject: RE: Extraction of Links from RichText
Hi Ben,
Thanks for your input.
Regards,
Priti.