Dear support,
we are facing rather often but nevertheless unpredictably the problem that the mail merge functionality produces identical documents. This is the part of code
01.
public
static
IList<
object
> GetMailMergeBinaryResultDocuments
02.
(
byte
[] source, IEnumerable mailMergeDataSource)
03.
{
04.
if
(mailMergeDataSource ==
null
)
05.
{
06.
throw
new
ArgumentNullException(
"mailMergeDataSource"
);
07.
}
08.
09.
RadDocument masterDocument = XamlFormatProvider.Import(source);
10.
masterDocument.MailMergeDataSource.ItemsSource = mailMergeDataSource;
11.
RadDocumentEditor radDocumentEditor =
new
RadDocumentEditor(masterDocument);
12.
13.
radDocumentEditor.ChangeAllFieldsDisplayMode(FieldDisplayMode.Result);
14.
15.
List<
object
> resultDocuments =
new
List<
object
>();
16.
masterDocument.MailMergeDataSource.MoveToFirst();
17.
18.
do
19.
{
20.
resultDocuments.Add(masterDocument.MailMergeCurrentRecord());
21.
}
22.
while
(masterDocument.MailMergeDataSource.MoveToNext());
23.
24.
return
resultDocuments;
25.
}
where we know that different mail merge information was passed but for some reason was not processed correctly.
Can you help?
Regards Jo