InsertFile and Section Break (Continuous)

K

kaumil

I am writing a routine to combine two or more word documents. The issue is
that the last page of the first document could be in envelope layout and the
first page of the second document could be in portrait layout. To get around
this before combining word documents, I put a section break(continuous) at
the beginning and end of the word documents, so that the word document
settings are retained. This works well so that if I am inserting a file in
the merged document of different page layouts, those settings are retained,
but now my question is that if I have the first document of portrait layout
and the next document also of the same layout, because of the section
break(continuous) the next document is started on the same page and it does
not automatically add a new page? How do I make this happen? Any advice is
appreciated. Thanks.
 
S

Suzanne S. Barnhill

Use a Next Page break instead of Continuous. I think you'll find that Word
is already converting your Continuous breaks to Next Page when the paper
size or orientation is different from one section to another.
 
K

kaumil

Suzanne,

Thanks for your reply, but if I use Section break - next page then it will
add an a blank page in my individual word documents, so when I combine two
individual word documents, I will end up with blank pages in the combined
output. Do you have to then programatically delete those blank pages? How do
you do that?

Please assist. Thanks
 
S

Suzanne S. Barnhill

You should not end up with blank pages unless you've inserted some other
type of break (page break or Continuous break). A Next Page break just tells
Word to start the following material on the next page, period. It doesn't
insert blank pages (ever) unless you've used an Odd Page or Even Page break.
 
Top