c# - OpenXML copy the template documents multiple times to the new document -


i have template document , create new document copy contents of template document multiple times.

for example, result list count 10, copy template contents 10 times new document. therefore, process this:

foreach(var item in result) {    1. copy template contents new document > replace string > add page break    2. copy template contents new document > replace string > add page break    3. copy template contents new document > replace string > add page break    ........ } 
  1. how can copy contents of template document?
  2. how can read contents each of line replace string?


Comments