Dynamically generating a field

Here is the scenario;
There is a field named firstName; there will be one or multiple instances of this field which will be passed into my method.
Each name will be populated on a separate line; so I need to create a new line for each firstName.
How can I dynamically create this?
The language I’m using is C#.NET and it will be a web API if it makes any difference.
I would really appreciate your help.
Thanks,
Reza

@rezakaj

Thanks for your inquiry. You can use Mail Merge with regions for your requirements. You may download Aspose.Words for .NET examples from Github repository and check following documentation links for details.

Mail Merge And Reporting
Types of Mail Merge Operations