Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Tue Oct 11, 2016 3:09 pm

in the demo of MailMerge
Code: Select all
            //Execute mailmerge
            document.MailMerge.MergeField += new MergeFieldEventHandler(MailMerge_MergeField);
            document.MailMerge.ExecuteGroup(new MailMergeDataTable("Customer", customerRecords));

the first parameter in the class MailMergeDataTable Constructors :"Customer" ,where does it defined? and what's meaning of this parameter ?

yulifan55
 
Posts: 1
Joined: Tue Oct 11, 2016 2:57 pm

Wed Oct 12, 2016 2:45 am

Dear yulifan55,

Thanks for your inquiry.
Here is an article( http://www.e-iceblue.com/Tutorials/Spir ... eport.html) about Mail Merge, please reference it. Sometimes, you want to create a mail merge where you can list several items for one particular category, you can use Group. And the group start and end merge fields should be GroupStart and GroupEnd respectively.
MailMergeDataTable(string groupName, IEnumerable enumerable), the first parameter is Group name(after GroupStart or GroupEnd) in the MergeField. You need to set it accoring to the Group name in your document.
If there is any question, welcome to get it back to us.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Thu Oct 13, 2016 9:20 am

Dear yulifan55,

How is your issue now ? Could you please give us some feedback at your convenience ?

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.Doc