We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Modifying text before/after a Merge Field

Thread ID:

Created:

Updated:

Platform:

Replies:

101583 Nov 3,2011 06:41 PM UTC Nov 9,2011 05:05 PM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: DocIO
Administrator [Syncfusion]
Asked On November 3, 2011 06:41 PM UTC


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

Gunasekaran T [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;