Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-30-2010, 08:55 AM
saravananiyyanar saravananiyyanar is offline Issue with Section Odd Break and Pagination Restart Windows Vista Issue with Section Odd Break and Pagination Restart Office 2007
Novice
Issue with Section Odd Break and Pagination Restart
 
Join Date: Dec 2010
Posts: 10
saravananiyyanar is on a distinguished road
Default 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.
Reply With Quote
  #2  
Old 12-30-2010, 01:16 PM
macropod's Avatar
macropod macropod is offline Issue with Section Odd Break and Pagination Restart Windows 7 32bit Issue with Section Odd Break and Pagination Restart Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #3  
Old 12-31-2010, 12:39 AM
saravananiyyanar saravananiyyanar is offline Issue with Section Odd Break and Pagination Restart Windows Vista Issue with Section Odd Break and Pagination Restart Office 2007
Novice
Issue with Section Odd Break and Pagination Restart
 
Join Date: Dec 2010
Posts: 10
saravananiyyanar is on a distinguished road
Default

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
Reply With Quote
  #4  
Old 12-31-2010, 12:17 PM
macropod's Avatar
macropod macropod is offline Issue with Section Odd Break and Pagination Restart Windows 7 32bit Issue with Section Odd Break and Pagination Restart Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #5  
Old 01-03-2011, 07:45 AM
saravananiyyanar saravananiyyanar is offline Issue with Section Odd Break and Pagination Restart Windows Vista Issue with Section Odd Break and Pagination Restart Office 2007
Novice
Issue with Section Odd Break and Pagination Restart
 
Join Date: Dec 2010
Posts: 10
saravananiyyanar is on a distinguished road
Default

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.
Reply With Quote
  #6  
Old 01-03-2011, 02:19 PM
macropod's Avatar
macropod macropod is offline Issue with Section Odd Break and Pagination Restart Windows 7 32bit Issue with Section Odd Break and Pagination Restart Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #7  
Old 01-04-2011, 08:01 AM
saravananiyyanar saravananiyyanar is offline Issue with Section Odd Break and Pagination Restart Windows Vista Issue with Section Odd Break and Pagination Restart Office 2007
Novice
Issue with Section Odd Break and Pagination Restart
 
Join Date: Dec 2010
Posts: 10
saravananiyyanar is on a distinguished road
Default

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.
Reply With Quote
  #8  
Old 01-04-2011, 09:41 AM
macropod's Avatar
macropod macropod is offline Issue with Section Odd Break and Pagination Restart Windows 7 32bit Issue with Section Odd Break and Pagination Restart Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi saravananiyyanar,
Quote:
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.
I thought from your previous post you were trying to force a chapter ending with a even page to end on an odd page. To get what you want, change the 0 in the field code to 1, thus:
{IF{=MOD({PAGE},2)}= 1 "manual page break"}
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #9  
Old 01-06-2011, 10:09 AM
saravananiyyanar saravananiyyanar is offline Issue with Section Odd Break and Pagination Restart Windows Vista Issue with Section Odd Break and Pagination Restart Office 2007
Novice
Issue with Section Odd Break and Pagination Restart
 
Join Date: Dec 2010
Posts: 10
saravananiyyanar is on a distinguished road
Default

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
Attached Files
File Type: docx PageBreak.docx (11.9 KB, 16 views)
Reply With Quote
  #10  
Old 01-06-2011, 03:01 PM
macropod's Avatar
macropod macropod is offline Issue with Section Odd Break and Pagination Restart Windows 7 32bit Issue with Section Odd Break and Pagination Restart Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #11  
Old 01-07-2011, 01:12 AM
saravananiyyanar saravananiyyanar is offline Issue with Section Odd Break and Pagination Restart Windows Vista Issue with Section Odd Break and Pagination Restart Office 2007
Novice
Issue with Section Odd Break and Pagination Restart
 
Join Date: Dec 2010
Posts: 10
saravananiyyanar is on a distinguished road
Default

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
Reply With Quote
  #12  
Old 01-07-2011, 01:35 AM
macropod's Avatar
macropod macropod is offline Issue with Section Odd Break and Pagination Restart Windows 7 32bit Issue with Section Odd Break and Pagination Restart Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #13  
Old 01-07-2011, 07:03 AM
saravananiyyanar saravananiyyanar is offline Issue with Section Odd Break and Pagination Restart Windows Vista Issue with Section Odd Break and Pagination Restart Office 2007
Novice
Issue with Section Odd Break and Pagination Restart
 
Join Date: Dec 2010
Posts: 10
saravananiyyanar is on a distinguished road
Default

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.
Reply With Quote
Reply



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
Issue with Section Odd Break and Pagination Restart 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
Issue with Section Odd Break and Pagination Restart 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

Other Forums: Access Forums

All times are GMT -7. The time now is 05:14 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft