I have already gone through all the related post but could not find any conclusive answer to my problem.I am doing fairly simple thing here and everything works as expected except the part of the contents of richtext field, which is appended from backend, are not displayed on web.
Scenario
In a web application based on user actions an agent is run to create a notes document in backend compiling contents from multiple documents into a temporary document and finally I show the temporary document to user. Contents are in the form of richtext and contains only formatted text. Contents are compiled in temporary document using NotesRichTextItem.AppendRTItem
Problem
The contents are appended in the temporary document and can be seen from document properties and Notes client. When I open the same document on web some part of the contents are not visible. I could identify at one place but it might not show some other parts as well if the contents (and size of text in turn) are changed.
Other Observations
In document properties multiple fields are shown for richtext field. Each field contains data aground 30K. These fields are as follows:
Field Name: txt_agreement
Data Type: Rich Text
Data Length: 30714 bytes
Seq Num: 1
Dup Item ID: 0
Field Flags: SIGN SEAL
Field Name: txt_agreement
Data Type: Rich Text
Data Length: 29280 bytes
Seq Num: 1
Dup Item ID: 1
Field Flags: SIGN SEAL
I understand that Notes splits the richtext data into multiple fields and manages under hood to display this. If the document is saved once on Notes client then field flags (SIGN SEAL) are removed and the contents can be seen on Web.
Things already tried
I have already tried many workarounds, which were suggested in other posts, but nothing seems to work.
1.Making the RT field computed assigning same field name as formula. Tried with ComputeWithForm as well after this.
2.Removing Field Flag SIGN explicitly in script when the RTItem is added using IsSigned = False
WOULD APPRECIATE IF ANYONE CAN POST HIS/HER EXPERIENCE FOR SIMILAR ISSUE AND WORKAROUND USED.
Thanks in advance
Hemant