PDA

View Full Version : InsertFile and Section Break (Continuous)


kaumil
June 1st 06, 04:10 PM
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.

Suzanne S. Barnhill
June 1st 06, 05:03 PM
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.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"kaumil" > wrote in message
...
> 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.

kaumil
June 1st 06, 06:07 PM
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

"Suzanne S. Barnhill" wrote:

> 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.
>
> --
> Suzanne S. Barnhill
> Microsoft MVP (Word)
> Words into Type
> Fairhope, Alabama USA
> Word MVP FAQ site: http://word.mvps.org
> Email cannot be acknowledged; please post all follow-ups to the newsgroup so
> all may benefit.
>
> "kaumil" > wrote in message
> ...
> > 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.
>
>

Suzanne S. Barnhill
June 2nd 06, 12:46 AM
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.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"kaumil" > wrote in message
...
> 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
>
> "Suzanne S. Barnhill" wrote:
>
> > 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.
> >
> > --
> > Suzanne S. Barnhill
> > Microsoft MVP (Word)
> > Words into Type
> > Fairhope, Alabama USA
> > Word MVP FAQ site: http://word.mvps.org
> > Email cannot be acknowledged; please post all follow-ups to the
newsgroup so
> > all may benefit.
> >
> > "kaumil" > wrote in message
> > ...
> > > 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.
> >
> >

Google