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
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