We're sorry GroupDocs doesn't work properply without JavaScript enabled.

Free Support Forum - groupdocs.com

Merge fields are populated as plain text

Hi,
we found that all the merge fields are populated as plain text in template “Template_GeneratedByGroupDocs.doc”
(one attached here) instead of driven by formula(Field Code).
we can view the formula for those merge fields in template “Template.doc”(one attached here)in by selecting the field, right click and select the option “Toggle Field Codes”.

In addition to above issues, the condition check(If condition added to render the specific content) are also skipped
during the generation of document.As a result of this, the content is populated without condition check
in template “Template_GeneratedByGroupDocs.doc”(one attached here).

Following files are attached for your reference:
1)Template.doc - Input file used to test the GroupDocEditor.
2)Template_GeneratedByGroupDocs.doc - Template generated by GroupDocsEditor.

Regards,
Ayyappan

Templates.zip (32.9 KB)

@ayyappanprofile

Could you please share the sample code?

Hi Tahir,
Code was provided earlier under this thread: Inconsistent HTML generation using .NET document editing API - GroupDocs.Editor Product Family - Free Support Forum - groupdocs.com

Zip file contains code was already shared with George Wright. Please let me know if you have any questions. Thanks.

Regards,
Ayyappan

@ayyappanprofile

Please take a look at this answer and let us which workaround works for you.

Hi Tahir,
Thanks for the information. We are looking into this and will get back to you shortly.

Regards,
Ayyappan

@ayyappanprofile

Alright.

Hi Tahir,
Thank you for the suggestions. We have now managed to find a workaround, and therefore this bug can be closed. It may still be a product feature you would like to investigate further for the next improvement. But we are ok with this one. Thanks again.

Regards,
Ayyappan

1 Like

@ayyappanprofile

Good to know that the issue is resolved.