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

Populate "Insert merge field" from dataset

0 Answers 62 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Vitall
Top achievements
Rank 1
Vitall asked on 24 Apr 2013, 10:27 AM
I need to know how can we populate(here "Column name") in "Insert merge field in Editor with the help of Dataset. For reference i put my code here to give you an idea;.....need quick response,thanks

ServiceReference1.LetterServiceClient letterservice = new ServiceReference1.LetterServiceClient();
            DataSet ds = letterservice.ExecuteTagSchema("SearchPatient");
            List<string> listTemp = new List<string>();

            foreach (DataColumn item in ds.Tables[0].Columns)
            {
                listTemp.Add(item.ColumnName);
            }
            this.DataContext = listTemp;
            this.radRichTextBox.Document.MailMergeDataSource.ItemsSource = listTemp;
            this.radRichTextBox.DocumentChanged += editor_DocumentChanged;
        }

No answers yet. Maybe you can help?

Tags
RichTextBox
Asked by
Vitall
Top achievements
Rank 1
Share this question
or