views:

20

answers:

1

In my application i am creating many .doc files and i want to append it to make a single .doc file . how could i do this using C#

A: 

Since your application already writes some doc files, I will assume you have experience with office interop.

A simple approach would be:

  • open the target file
  • for each source file:
    • open it
    • select all its content
    • copy the content in the clipboard
    • paste into the target file
    • close the source file
  • close the target file.
Johann Blais
Thas is fine when we have text only but what if source file contain images also?
sshah