Populate "Insert Merge Fields" drop down on mail merge tool bar with data source added from code


Populate "Insert Merge Fields" drop down on mail merge tool bar with...
Author
Message
Mike Willis
Mike Willis
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 18, Visits: 109
When setting the mail merge data source using the code below i am unable to see the field names in the "Insert merge field" drop down on the mail merge tool bar.
What am i missing to be able to set merge fields?
NDBMailMergeDataSource nDBMailMergeDataSource = new NDBMailMergeDataSource(Nevron.Nov.Data.ENDbConnectionType.SqlServer, "Data Source=w10Mike;Initial Catalog=Pats;Integrated Security=True", "SELECT Id, field1, field2 FROM tableone");

    
    this.RichTextView.Content.MailMerge.DataSource = nDBMailMergeDataSource;
Reply
Mike Willis
Mike Willis
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 18, Visits: 109
Thanks, setting just my code got me past the issue.
Thanks for the extra effort!


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search