I would like to give users a way to populate a template using a CSV/Excel file. I realize I could ask them to create a block that starts at the beginning of the body and ends at the end of the body. I would ideally not require that they add the block if it is understood the entire document should be cloned.
In searching the documentation for bulk processing, I found replaceList (which looks promising), replaceWordFragment, and cloneWordContent. I am trying to determine the simplest way to do this. I would like a single document at the end that has the content cloned and replaced based on the number of rows. I'd like to ensure each cloned content has a page break between them.
Any suggestions on how I can accomplish this? I'm handling the improting of the CSV/Excel as well as the column to placeholder mapping so I have all the data and just need to understand the best way to clone an entire document - I think MS Word mail merge works this way.
Thanks