#1
|
|||
|
|||
Issue with Section Odd Break and Pagination Restart
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 i see is, the section odd break is not working as expected. When i tried printing or print preview the document, we dont 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 i have continious numbering between the chapters. But we did not get blank page if we restart the page numbers for chapters. Any suggestions on this issue is much appreciated. |
#2
|
||||
|
||||
Hi saravananiyyanar,
Rather than using 'Odd-page' Section breaks, try using ordinary 'Next Page' Section breaks along with a field coded as: {IF{=MOD({PAGE},2)}= 0 {QUOTE 12}} This field should be placed after the final '.' in each chapter (ie immediately before the 'Next Page' Section break). Note: The field brace pairs (ie '{ }') for the above example are created via Ctrl-F9 - you can't simply type them or copy & paste them from this message.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Hi Paul,
Thanks for your reply 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. Your advice on this much appreciated. Please let me know if you have any questions. Thanks |
#4
|
||||
|
||||
Hi saravananiyyanar,
Have you tried my suggestion? If you put the field code into a Word 2007 document and save it in the docx format, you should be able to retrieve the xml parsing of the field code. You would then insert a generic version of that as the last piece of code in each Section of the document. Note: insead of {QUOTE 12} you could insert a manual page break between a pair of double quotes (ie: {IF{=MOD({PAGE},2)}= 0 "manual page break"})
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
Thanks Paul, it works fine
We are creating an RTF document and opening it in Word 2007. We are actually reading xml using java and creating RTF document by appending RTF source code for xml entities. Is there any RTF directive using which we can do the filed code validation that we did using the Word 2007 or is there any way to achive the functionality? If there is any, then we can add the directive at the end of every chapter. Please advice. Thanks. |
#6
|
||||
|
||||
Hi saravananiyyanar,
If you save a document containing the field code I gave you in RTF format, you should be able to extract the RTF encoding from there for embedding into your own code.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#7
|
|||
|
|||
Thanks for the information Paul. I tried adding the filed code {IF{=MOD({PAGE},2)}= 0 "manual page break"} at the end of a chapter before 'Next Page' Section break and it is not giving me a blank page. If the chapter is ending in odd page we need a blank page and if the chapter is ending in even page we do not need a blank page. Also for every chapter the page number gets restarted. Please advice if i am missing anything.
|
#8
|
||||
|
||||
Hi saravananiyyanar,
Quote:
{IF{=MOD({PAGE},2)}= 1 "manual page break"}
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#9
|
|||
|
|||
Hi Paul, when i equate with 1, manual page break text gets dispalyed in the document and blank page is not inserted. I have attached the document for your reference.
In the first page i have added "One" text and in next line added the field code {IF{=MOD({PAGE},2)}= 1 "manual page break"} and in next line inserted a Section Next Page Break. The second page has text "Two" and the page number is restarted. Please advice if i am doing anything wrong. Thanks |
#10
|
||||
|
||||
Hi saravananiyyanar,
You're not supposed to use the words 'manual page break' - you're supposed to insert a manual page break (eg by Ctrl-Enter) in place of those words, as per my Note in post #4 above ...
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#11
|
|||
|
|||
Great Paul Its working fine.
When we save the field code and open the document, the empty pages are not seen. But when we print preview the document, the blank pages are seen. Thats really good. But the issue what i see is, when we close the print preview, the blank pages are seen in the document. When i close and open the document again the blank pages are not seen but print will be working as expected. Please advice. Thanks |
#12
|
||||
|
||||
Hi saravananiyyanar,
The fields work somewhat dynamically in that they'll update and display/hide depending on the current state of the document. In the meantime, if you do something that causes a change in the page count, the pagination might appear to be 'wrong'. It'll correct itself again when you do a print or print preview, or Ctrl-A, F9, etc.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#13
|
|||
|
|||
Hi Paul, what you said is right.
The Section Odd Page Break and Pagination Restart combinaton works as expected when we set Mirrored margin for the document. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
paragaph hard break, soft break and ...strange break | czomberzdaniela | Word | 2 | 12-03-2010 06:58 PM |
Pagination | eliz.bell | Word | 1 | 08-27-2010 11:35 AM |
Pagination of HTML Document | golfnut324 | Word VBA | 0 | 07-23-2010 09:19 AM |
Anchoring a section break to the bottom of a page, and having a table pass over it??? | h3rk | Word Tables | 1 | 11-20-2009 07:34 AM |
Section Break ODD | Manolo | Word | 0 | 04-29-2009 11:06 PM |