Removing hotspots from body using Lotus notes C API -
i trying remove hotspots note body using c api. know 1 way this:
1) nsfnoteopen(hdb, noteid, 0 /*no flags*/, &hnote);
2) enumerate alltype_composite items, keep appending cd records in separate buffer except records between sig_cd_hotspotbegin , sig_cd_hotspotend
3) remove item , append newly created item.
4) nsfnoteupdate(hnote, update_force);
but problem that, rich text infomations lost
is possible achieve same when note opened open_raw_mime flag? there no type_composite items in note in case.
thanks
you need determine type of body field , act accordingly. i.e., if body stored type_composite, know do. if body stored type_mime_part, need use notes c api calls names start "mime". can find these functions listed in notes c api reference. here couple of blog posts talk bit related subjects.
Comments
Post a Comment