Appending An Existing RTF Document

C

Chuck Pryor

I want to append an existing document in a new secition
with it's own formatting (margins, headers, footers,
etc). I'm using the following code with two different
options to append the document. Both options have the
same results, the document I'm appending takes on the
properties of the document I'm appending it to. Any ideas?

// insert section break at end of document
Wrd.Selection.EndKey(6);
Wrd.Selection.Collapse(wdCollapseEnd);
Wrd.Selection.Range.InsertBreak(wdSectionBreakNextPage);
Wrd.Selection.Collapse(wdCollapseEnd);

// Option 1
Wrd.Activedocument.Content.InsertFile(FileName);

// Option 2. The fucntion does a simple copy & paste
// of the
PasteSubDoc(FileName);

Regards,

Chuck
 
W

Word Heretic

G'day "Chuck Pryor" <[email protected]>,

check out the parameters in

ActiveDocument.SubDocuments.Add

Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


Chuck Pryor reckoned:
 

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