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

MergeField Formatting

2 Answers 77 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 30 Apr 2013, 04:12 PM
I'm finding rather large inconsistencies with MergeField formatting. I am binding my RichTextBox with the DocxDataProvider. On a "save" I am saving the byte[] data to a database. Sometimes the MergeFields formatting saves, other times it does not. I am noticing if there are two MergeFields right next to each other, separated by a space, the MergeField on the right will not have it's formatting saved.

The same holds true if you have a 2 column table, the MergeFields in the left column preserve their formatting, however the ones in the right do not. Though this is not an all the time thing.

Is DocxDataProvider and saving the byte[] data that unreliable? Is there a more reliable way to do things. I've wasted a lot of time playing with this, and it was a great idea to help contain our client's from making mistakes/misspellings in Word.

I'm to the worn-down phase now and will consider taking this away from the DocxDataProvider and the MVVM pattern, if i can get more reliability.

2 Answers, 1 is accepted

Sort by
0
Boryana
Telerik team
answered on 03 May 2013, 07:17 AM
Hi Richard,

Thank you for writing.

Currently, we are working with limited resources because of the Easter Holidays and will need some more time to provide you with proper answer. I will mark this ticket as requiring additional answer and we will get back to you as soon as we can. Please excuse us for the caused inconvenience.

Thank you for your understanding and cooperation.

All the best,
Boryana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Mihail
Telerik team
answered on 13 May 2013, 08:25 AM
Hello Richard,

 Please excuse us for the delayed response.

We are aware of a problem where merge fields lose their formatting when saved without item source. Can you confirm that your problem is the same?
If not, can you please give us a stable procedure to reproduce the described behavior.

Looking forward to your reply.

Regards,
Mihail
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RichTextBox
Asked by
Richard
Top achievements
Rank 1
Answers by
Boryana
Telerik team
Mihail
Telerik team
Share this question
or