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

MailMergeDataSource.MoveToFirst();

1 Answer 22 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Rieni De Rijke
Top achievements
Rank 1
Rieni De Rijke asked on 08 Mar 2012, 09:15 PM
I have an RadDocument and added a MailMergeDataSource to it.
I want to merge the first record.

When using this:
editor.Document.MailMergeDataSource.MoveToFirst();
resultDoc = editor.Document.MailMergeCurrentRecord();
... the CurrentItem seems to be empty: 

But, doing it this way:
editor.Document.MailMergeDataSource.MoveToFirst();
editor.Document.MailMergeDataSource.MoveToNext();
editor.Document.MailMergeDataSource.MoveToPrevious();
resultDoc = editor.Document.MailMergeCurrentRecord();
..., the CurrentItem is Ok: 



1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 13 Mar 2012, 10:28 AM
Hi Rieni,

I was not able to reproduce the issue. Please find attached the demo I used for testing.
We would appreciate it if you get back to us with steps to reproduce and a demo of yours, so that we can investigate what the problem in your application is.

Regards,
Iva Toteva
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
RichTextBox
Asked by
Rieni De Rijke
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or