This is a migrated thread and some comments may be shown as answers.

Chebox behaviour degrades after MailMerge

3 Answers 88 Views
WordsProcessing
This is a migrated thread and some comments may be shown as answers.
Vadim
Top achievements
Rank 1
Veteran
Vadim asked on 22 Jan 2021, 02:08 PM

Hello,

I have a docx template file that contains both MERGEFIELD and CheckBox.

Using version 2021.1.118 of Telerik.Windows.Documents.Flow I perform MailMerge on that document.

After mailmerge the Checkbox control in the output document looses its style when being manually triggered. Manually triggering checkbox in original template does not change original style.

It's expected, that after mailmerge the Checkbox behaves as before mailmerge.

 

The complete demo is here:

https://github.com/vslynko/telerik-mailmerge-bugreport

3 Answers, 1 is accepted

Sort by
0
Vladislav
Telerik team
answered on 26 Jan 2021, 01:04 PM

Hello Vadim,

I was able to reproduce the issue on my side. It is unrelated to MailMerge and can be observed when the document is being imported and then exported. This issue is related to a missing feature - WordsProcessing: Add support for Run properties as part of the Structured Document Tag properties. You can vote and subscribe for it. The item is already in development and will be available with one of our next LIBs.

There is a workaround: you need to apply the custom run properties as a style to the checkbox content control.

I have updated your Telerik points in appreciation for your contribution to the product.

I hope that you find this information helpful. If you need any additional information, I will be happy to help.

Regards,
Vladislav
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Vadim
Top achievements
Rank 1
Veteran
answered on 28 Jan 2021, 10:54 AM

Hello Vladislav,

Thank you for acknowledging this issue. Looking forward to getting it fixed.

Regarding the workaround, I would greatly appreciate some more details.

> Custom run properties as a style

Is it something I can do with teleriks wordsprocessing, or it should be done using MS Word on an exported document to restore the style manually?

Thanks in advance.

Vadim.

0
Vladislav
Telerik team
answered on 29 Jan 2021, 10:36 AM

Hi Vadim,

What I meant to was to open the document in MS Word and create a new style with the correct properties. In this case: the bold state should be on, and the font size should be 14pt (I have attached how the style dialog should look like). After that, you will need to apply this style over the check box.

This approach will work either before or after the mail merge is being performed. But I think that for your workflow, it will be easier to do it beforehand.

I hope that this workaround will work out for you.

Regards,
Vladislav
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
WordsProcessing
Asked by
Vadim
Top achievements
Rank 1
Veteran
Answers by
Vladislav
Telerik team
Vadim
Top achievements
Rank 1
Veteran
Share this question
or