Hi,
I have RadRichTextbox with XamlDataProvider and I use Mail Merge function. In UI it works great. But when I try to extract a current document on the backend (eg. RadDocument resultDoc = myRadRichTextBox.Document.MailMergeCurrentRecord();) the resultDoc is empty. If I do not use XamlDataProvider then it works fine.
Am I supposed to be extracting merged document differently when I use DataProvider?
Some background ... I am creating an email editor for mail merge. Email text is saved in the database. I binded XamlDataProvider's Xaml property to property on ViewModel. This way I can save and load it to and from database. User uses Mail Merge function to scroll through records,. Then user can click on a Button which should send email with the current record being viewed. So I need to extract the document.
Thank you in advance.
I have RadRichTextbox with XamlDataProvider and I use Mail Merge function. In UI it works great. But when I try to extract a current document on the backend (eg. RadDocument resultDoc = myRadRichTextBox.Document.MailMergeCurrentRecord();) the resultDoc is empty. If I do not use XamlDataProvider then it works fine.
Am I supposed to be extracting merged document differently when I use DataProvider?
Some background ... I am creating an email editor for mail merge. Email text is saved in the database. I binded XamlDataProvider's Xaml property to property on ViewModel. This way I can save and load it to and from database. User uses Mail Merge function to scroll through records,. Then user can click on a Button which should send email with the current record being viewed. So I need to extract the document.
Thank you in advance.