PDA

View Full Version : Give me a break



doubtfire
10-19-2012, 12:27 PM
I am applying a
oWord.Selection.InsertBreak Type:=wdSectionBreakNextPage
which is working well besides a blank page is always inserted.
All I want is after printing the 1st page, does not matter where it stops be top or last line, the page 2 is printed on a fresh page.
Any ideas for a new helpful break.
:helpThank you.:help

fumei
10-19-2012, 01:55 PM
All I want is after printing the 1st page, does not matter where it stops be top or last line, the page 2 is printed on a fresh page.

I do not understand. Try being a bit more specific, and perhaps post some code.

Are you saying page 2 is somehow NOT page 2???

doubtfire
10-19-2012, 03:21 PM
I have two tables (length vary), after printing table1 table2 will be printed on a fresh page.
I have placed
oWord.Selection.InsertBreak Type:=wdSectionBreakNextPage
after the table1, but it does not matter where the last line of the table lands a new blank page is automatically placed after.
Therefore I am getting a table1 + blank page + table2.
All I want is table1 then table2.
Thank you.: pray2:

fumei
10-19-2012, 07:12 PM
:after the table1, but it does not matter where the last line of the table lands a new blank page is automatically placed after."

That is what SectionBreakNextPage does. NextPage.

If you want "table1 then table2" do nothing.

Not seeing what your problem is.

doubtfire
10-20-2012, 06:50 AM
Thanks.