Populate "Insert merge field" from dataset

1 posts, 0 answers
  1. Vitall
    Vitall avatar
    7 posts
    Member since:
    Apr 2013

    Posted 24 Apr 2013 Link to this post

    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)
                this.DataContext = listTemp;
                this.radRichTextBox.Document.MailMergeDataSource.ItemsSource = listTemp;
                this.radRichTextBox.DocumentChanged += editor_DocumentChanged;
Back to Top