Hi Mehdi,
Thanks for your update.
I have modified the sample as you expect.
Code Snippet:
//Getting Data from the database
conn1 = new OleDbConnection(connString1);
conn1.Open();
OleDbCommand cmd1 = new OleDbCommand("SELECT StudentName,TeacherName1,TeacherName2,TeacherName3,StudentTable.StudentID,StudentAge FROM StudentTable, Teachertable1 WHERE StudentTable.StudentID=Teachertable1.StudentID", conn1);
//Excute Query
IDataReader dataReader1 = cmd1.ExecuteReader();
//Excute MailMerge
document.MailMerge.Execute(dataReader1);
Herewith I have attached the sample for your reference:
SampleHerewith I have attached the generated document for your reference:
http://websamples.syncfusion.com/samples/DocIO.Windows/F59810_3//main.htmPlease take a look into this and let me know if you have any other Queries.
Thank you for your interest in Syncfusion products.
Best Regards,
Bhuvaneswari.