Modifying text before/after a Merge Field


Hi,

Is there a way to change the text before/after a merge field at run time? For example, the merge field I have defined is called ModelNoMfgNo because it may have the Model # value or the Mfg # value depending on a boolean that I'll be passing. I set the text to 'Model No:' during design-time (merge field creation) but I'd like to have the ability to change it to 'Mfg No:' at run-time depending on the boolean.





MergeField_Text_ca2adbd8.zip

1 Reply

GT Gunasekaran T Syncfusion Team November 9, 2011 05:05 PM UTC

Hi SMM,

Thank you for your interest in Syncfusion products.

The text before/after for the merge field can be modified using the FieldCode property which is exposed as public in our latest Version 9.4.0.62. The text followed by “\f” denotes the text after and the text followed by “\b” denotes the text before for a merge field. We have created the sample illustrate your requirement to modify the text before for a merge field. Please do find the sample from the attachment.

Please let us know if you have any other questions.

Regards,
Gunasekaran



Sample_1a51db69.zip

Loader.
Up arrow icon