Good morning,
can you help me? I need to replace some text strings in doc documents by FieldMergeField ,
i have client templates that has plain text, and I need to replace some words with the correct template parameters.
I've got to create parameters,
Spire.Doc.Document document = new Spire.Doc.Document();
Spire.Doc.Section section = document.AddSection();
Spire.Doc.Documents.Paragraph paragraph = section.AddParagraph();
paragraph.AppendText("<<nombreClienteExpediente>>");
paragraph.AppendField("nombreClienteExpediente", Spire.Doc.FieldType.FieldMergeField);
document.SaveToFile("c:\\plantilla .docx", Spire.Doc.FileFormat.Docx);
document.Close();
but I can't replace plain text with FieldMergeField.
thank you