Word Automation - replicating document pages with C#

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I've been given the task of producing a word document from an excel
spread***. For each row in the spread*** I have to copy the first
page of the template document, append it to the output document and
replace a dozen fields.

I've been able to do everything apart from the cutting and pasting of
a page.

Can someone give me a some pointers on how to do it?

I'm working with the followin objects:

wordApp = new Word.ApplicationClass();
wordDoc = wordApp.Documents.Add(ref fileName, ref newTemplate, ref
docType, ref isVisible);

Thanks,

Mike

.


Quantcast