Hi,
my output data should be
(Bullet) . Prevent
. Ravi
. Kumar
These three names i get them from database, so what ever data i get from database should be presented in the form of a bulleted list. For this how to do it.
Thanks,
Ravi
Hi
Thanks for your inquiry. Try to build your template as the following.
- «TableStart:list»«Field1»«TableEnd:list»
Use the following code to generate report.
DataTable table = new DataTable("list");
table.Columns.Add("Field1");
for (int i = 0; i < 10; i++)
{
DataRow row = table.NewRow();
row[0] = String.Format("List item #{0}", i.ToString());
table.Rows.Add(row);
}
Document doc = new Document(@"341_101805_raviteja\in.doc");
doc.MailMerge.ExecuteWithRegions(table);
doc.Save(@"341_101805_raviteja\out.doc");
I hope that this will help you.
Best regards.
Hi,
Can you please let me know how to place the <><>>
How to place it in word, directly type it? or use any inserts. that i am not able to understand.
For merge fields , we do insert merge field,So for this one also, we need to insert any thing/?
Thanks,
Ravi
Hi
Thanks for your request. These are merge fields. See the following link to learn more.
https://docs.aspose.com/words/net/mail-merge-template/
Also see the attachment.
Best regards.