I have created some CustomDocumentProperties inside my document. I set the values inside my code. However, itonly gets updated within the document. The same fieldsembedded on the title page do not get updated. Is there a workaround to this? Here is my code:
MemoryStream memoryStream = new MemoryStream();
//Save the document into memory stream document.CustomDocumentProperties["ProjectName"].Value = curProject.ProjectName; document.CustomDocumentProperties["CustomerName"].Value = curProject.CompanyName; document.CustomDocumentProperties["ProjectDescription"].Value = curProject.ProjectDescription; document.UpdateDocumentFields(); ///this works for fields only within the document. The same fields embedded in the title page do not work document.Save(memoryStream, FormatType.Docx);
Here is some additional information. The custom fields were actually embedded inside a textbox of the title page. The rest of the fields were directly embedded in the document. I modified the title page to remove the textboxes and embedded the custom fields directly into the document. The workaround is fine with me but just as an FYI to the development team, embedded fields inside of a Text Box do not automatically update on document opening. I need to explicitly update the fields.
SYSethumanikkam Yogendran Syncfusion Team February 23, 2017 11:35 AM UTC
Thank you for contacting Syncfusion support.
A support incident to track the status of your query has been created under your account. Please log on to our support website to check for further updates,