Completed
Last Updated: 14 Feb 2019 15:31 by ADMIN
ADMIN
Boby
Created on: 03 Nov 2017 15:24
Category: WordsProcessing
Type: Bug Report
2
WordsProcessing: When merge field is evaluated to null or empty string, result fragment is not removed from the merged document
When MergeField is present in the document, and this merge field is evaluated to an empty string - this, for example, happens when the property in the data source is set to null, empty string, or is missing at all - the result fragment remains in the result document. Instead, it should be removed.

Steps to reproduce: 
- Create document with merge field, the field should contain result fragment, and set data source which contains null or string.Empty value for the field:

            RadFlowDocument document = new RadFlowDocument();
            RadFlowDocumentEditor editor = new RadFlowDocumentEditor(document);

            editor.InsertField("MERGEFIELD FirstName ", "«FirstName»");

            List<Person> source = new List<Person>()
            {
                new Person() { FirstName = string.Empty }
            };

            RadFlowDocument mergedDocument = document.MailMerge(source);
Expected: The result document is empty.
Actual: The result document contains "«FirstName»" string.

Available in LIB Version 2017.3.1120.
2 comments
ADMIN
Boby
Posted on: 14 Feb 2019 15:31
Hi Jorge,

We believe the issue is fixed in R1 2018, so upgrading to a later version should resolve it.

Regards,
Boby
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Jorge
Posted on: 13 Feb 2019 00:10
instead of string it should be removed, like when one expects that field to be empty