Word 2002 - inserting files into active document

S

Sandy

Hi there

I need to programmatically insert documents into the active document. The
documents to be inserted have a different page set up to the active document
and also different headers and footers.

I need to insert up to four documents into the active document so need to
know the best way to do this. I have included section breaks in the
documents to be inserted so that the page setup information is inserted with
the document contents but this doesn't run as quickly as I would like - would
it be quicker to store the page setup information in the code, then
programatically insert section breaks and adjust page setup?

I also need the "cleanest" solution possible for the benefit of future
developers working in my department.

I am working with Word 2002.

Any help would be greatly appreciated.

Many thanks
 
C

Cindy M.

Hi Sandy,
I need to programmatically insert documents into the active document. The
documents to be inserted have a different page set up to the active document
and also different headers and footers.

I need to insert up to four documents into the active document so need to
know the best way to do this. I have included section breaks in the
documents to be inserted so that the page setup information is inserted with
the document contents but this doesn't run as quickly as I would like - would
it be quicker to store the page setup information in the code, then
programatically insert section breaks and adjust page setup?
Only testing in your target environment can say for sure. Word does require time
to calculate page layout; in the end, there's nothing you can do to speed that
up.
I also need the "cleanest" solution possible for the benefit of future
developers working in my department.

I am working with Word 2002.
If there's a chance these inserted document's page layout could change, then
hard-coding the page setup information will not be "clean"...

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top