How can i add checkbox property using mail merge field using Telerik Word Processing? could you please help?

1 Answer 95 Views
CheckBox Editor
Roshni
Top achievements
Rank 1
Roshni asked on 03 Apr 2023, 03:33 AM
I have added Mail Merge field and and try to add checkbox property using Telerik word processing. but not able to find the solution. and not able to extract Mail Merge fields also from word document.

1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 05 Apr 2023, 01:35 PM

Hello Roshni,

1. In order for me to get more context about the expected checkbox property and be able to give you some specifics, would you be able to provide more details regarding the expected use, environment, and implementation of the checkbox?

2. The Merge Fields can be obtained by utilizing the EnumerateChildrenOfType and passing the FieldCharacter for the desired type to it. That returns a collection of 'Start' 'Separator' and 'End' field characters for each of the fields. For easier iteration, this collection can be filtered down to only the 'Start' characters of each field. Each of those characters exposes the Field it is related to by referencing it in the FieldInfo property:

var fieldCharacters = document.EnumerateChildrenOfType<FieldCharacter>().Where(fc => fc.FieldCharacterType == FieldCharacterType.Start);
Field fieldCharacter = fieldCharacters.FirstOrDefault().FieldInfo.Field;

Note: After performing the Mail Merge this functionality will no longer function, because the fields will be replaced by the corresponding text.

For more information on this functionality if you haven't already you can check out the following articles:

Hope this helps. If there is anything else you would need our assistance with, don't hesitate to ask.

Regards, Yoan Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
CheckBox Editor
Asked by
Roshni
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or