I was wondering if there is a way to use 1 template file to create multiple files. For example...
- Code: Select all
For i As Integer = 0 To MyList.Count - 1
Dim document As Document = New Document("Template.docx")
document.Replace("Old Text", "New Text", False, True)
document.SaveToFile(i & " - Result.docx")
Next
The problem I have is, it only creates 1 file, instead of creating as many as in the list (let's say 10).