简体   繁体   中英

How to get link, image data from Lotus Notes RichText field using INTEROP.DOMINO.DLL

In my C# application, I can get attached file data from Domino RichText by using simple code, for example:

NotesRichTextItem rItem = notesItem as NotesRichTextItem;
NotesRichTextNavigatorClass rNavigator = rItem.CreateNavigator() as NotesRichTextNavigatorClass;
if (rNavigator.FindFirstElement(RT_ELEM.RTELEM_TYPE_FILEATTACHMENT))
 {
   do
    {
       var attachment = rNavigator.GetElement() as NotesEmbeddedObject;
       // and then do something with attachment data
    } while (rNavigator.FindNextElement());
 }

then I tried to get Hyperlink data or image data but I don't find out any idea about that. I have searched in google for many times, but no result.

There are no standard high level APIs from IBM for that, but you have two options:

  1. You can use the 3rd party MIDAS Rich Text API from Genii Software.

  2. You can use the NotesDXLExporter class to export the document to DXL, study the XML to identify the information that you are looking for, and write code using standard XML parsing APIs to get it.

In addition to the two options written by Richard Schwartz, you can also use a similar approach to NotesDXLExporter – web scraping the database content.

Open the document as a web page and parse the HTML using any C# web scraper library (eg IronWebScraper ).

If you don't know how to enable the database for web, read Setting up a Domino server as a Web server and Domino URL cheat sheet .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM