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

Importing xaml for mail merge template bug

1 Answer 80 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Minh
Top achievements
Rank 1
Minh asked on 26 Feb 2016, 08:17 PM

Hi, at the moment I create a document using richtextbox with some merge fields. I then save the document as a .xaml so the file can be reused over and over. I convert the file from my database and import it using the code below

 

private void OpenTemplate()
{
   if (Attachments.SelectedItem != null)
   {
     var template = (FilesDTO) Attachments.SelectedItem;
 
     RadDocument result;
     var UnitOfWork = new UnitOfWork();
     XamlFormatProvider provider = new XamlFormatProvider();
 
     result = provider.Import(UnitOfWork.MailTemplateRepository.GetById(template.Id).FileXAML);
                
     radRichTextBox.Document = result;
     }
}

 

 After opening the file, I then populate the

radRichTextBox.Document.MailMergeDataSource.ItemsSource = UniversalCollection; 

When loading a .xaml document, the mailing tab buttons behave weird. If I were to press any button [show all field codes, preview result, previous, next] it will jump to the Home tab instead of maintaining on the mailings tab. 

 

It works completely fine if I don't open a xaml document. Am I missing something upon importing? 

 

 

1 Answer, 1 is accepted

Sort by
0
Svetoslav
Telerik team
answered on 02 Mar 2016, 04:05 PM
Hello Minh,

Thank you for contacting us.

We are unaware of a similar issue and it is hard to determine what may cause it from the provided information. I tried using XAML file as a template for mail merge in RadRichTextBox, but it seems to work as expected.

The best way to approach such a problem is to replicate this behavior on our side and analyze the roots of the issue. Therefore, I would ask you to send us an isolated sample project that demonstrates the problem. Please, have in mind that in the public forum it is allowed to attach only images and you may need to open a support ticket, which allows attachments of zipped files.

Regards,
Svetoslav
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
RichTextBox
Asked by
Minh
Top achievements
Rank 1
Answers by
Svetoslav
Telerik team
Share this question
or