generate documents a template
what i need to do is simple to explain but seams to be har to do
I have one word template dotx and a colection os documents docx.
I wish to merge all this documents in a new document that use my word template.
the code to exemplify
Document doc = new Document(wordtemplate);
foreach (var docpath in docColection)
{
doc.AppendDocument(new Document(docpath),ImportFormatMode.UseDestinationStyles);
}
when i try to do that my template lose the header and footer and the documents appended sont follow the rules of the template, like have two coluns like the template has.