Hi everyone,
I’m working with the HCL C API Toolkit (version CAPIToolkit_1202_MP1) to extract rich text content from NSF documents. However, I’m facing a consistent issue where the Rich Text field is either not found or returns empty, even though the field exists in the document when viewed in the Notes client.
I’m using NSFItemInfo() to locate the item named "Body" or "Comment" (which is a Rich Text field). Then, I check if the item type is TYPE_COMPOSITE. Here’s a simplified version of my code:
BLOCKID item_blockid;
WORD data_type;
DWORD item_value_len;
STATUS error = NSFItemInfo(
hNote,
“Comment”,
(WORD)strlen(“Comment”),
NULL,
&data_type,
&item_blockid,
&item_value_len
);
if (error == NOERROR && data_type == TYPE_COMPOSITE) {
printf(“Found Rich Text field\n”);
// Proceed to read using Compound Text API (planned)
} else {
printf(“Rich Text field not found or not composite\n”);
}
i have also check this github wher richtext read formate available but this is also not working can you please check and give me any solution, domino-c-api-samples/samples/richtext/rrich/rrich.c at main · HCL-TECH-SOFTWARE/domino-c-api-samples · GitHub
Thanks