Office & Productivity Software forum

General discussion

Issue with Section Odd Break and Pagination Restart

by saravananiyyanar / December 30, 2010 6:17 PM PST

In MS Word, we introduced Section Odd Break at the end of first page and restarted the page numbers on the next page. The issue what we see is, the section odd break is not working as expected. When we tried printing or print preview the document, we don't see an empty page between the first and second page that Section Odd Break would create.

We have a requirement that if the content of a chapter finishes with odd section break in an odd numbered page, then the back page should print as blank and the next chapter should print in the next odd page. If the content of a chapter finishes with odd section break in an even numbered page, then the next chapter should print in the next page.

The functionality is working fine if we have continuous numbering between the chapters. But we did not get blank page if we restart the page numbers for chapters.

We are reading xml using java and creating RTF document and please find the source code that we have:

\par \b \i0 \ul0 \pard \qj \li0\ri0 \sb0 \fi0 OPINION
\par
\sect \sectd \marglsxn1296\sbknone {
\header \pard }\pard
\sect \sectd \marglsxn1296\sbkpage \pgnstarts1 \pgnrestart {
\header \pard \fs20 \f1 Page \chpgn \qr
\par }
\sect \sectd \marglsxn1296\sbknone \f1 {
\header \pard \fs20 \f1 Page \chpgn \qr
\par \pard \f1 \fs20 \hyphpar0 2010 OPINION, *\qc
\par }
\sect \sectd \marglsxn1296\sbknone \pard \hyphpar0 \qj \li0\ri0 \sb0 \fi0 {\*\shppict{\pict\pngblip
89504e470d0a1a0a0000000d49484452000000ee...}}
\par \pard
\par \pard \hyphpar0 \qc \li0\ri0 \sb0 \fi0 2 of 23 DOCUMENTS
\par \pard

For our requirement, we tried replacing \sbkpage as \sbkodd and it does not work with \sbkodd \pgnstarts1 \pgnrestart (section odd break and pagination restart combination)

Section odd break works as expected if we dont have pagination restart for the next chapter.
Any suggestion on this issue is much appreciated. Thanks Happy

Discussion is locked
You are posting a reply to: Issue with Section Odd Break and Pagination Restart
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Issue with Section Odd Break and Pagination Restart
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
Re: section odd break
by Kees_B Forum moderator / December 30, 2010 6:28 PM PST

Let's say the section odd break inserts a page-break if the next page isn't numbered odd. If you restart with 1, it's odd, so there is no need for a page-break.

If this reasoning is correct, you should insert a even page-break. That sees the next page is odd and inserts a blank page.

Just a guess. I didn't try.

Kees

Collapse -
Issue with Section Odd Break and Pagination Restart
by saravananiyyanar / December 30, 2010 7:10 PM PST
In reply to: Re: section odd break

Hi Kees,

Thanks for your reply. When i use section even break and pagination restart between the chapters (\sbkeven \pgnstarts1 \pgnrestart), and if a chapter ends in odd page, i am not getting blank page after the chapter and the page number starts from 2 in the next chapter.

Collapse -
So that wasn't a good idea.
by Kees_B Forum moderator / December 30, 2010 9:29 PM PST

Seemed worth a try. Sorry to see it didn't work. All you can do, I'm afraid, is try from Word what works and do that.

But it could be that having different documents for each chapter is the only solution. To make this one document with added blank pages you would need to write a macro in Word. That can count pages (which, of course, depend on the font, the page-layout, styles and the printer).
And then it might be easier to feed the current document to the macro and let it edit the document by adding an extra page-break where necessary.

Kees

Popular Forums
icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

FALL TV PREMIERES

Your favorite shows are back!

Don’t miss your dramas, sitcoms and reality shows. Find out when and where they’re airing!