Reply
 
Thread Tools Display Modes
  #1   Report Post  
SteveP
 
Posts: n/a
Default Can we force H1s to start on an odd page WITHOUT using section bre

We have Word 2003 and an application that stores/rebuilds a Word document
as/from a bunch of xml topics. Each topic starts with a H1, H2, or H3
heading. We are having real problems with section breaks because these are
stored in the Word ML at the end of the previous topic, whereas we want it to
be part of the H1 topic.

The ideal solution would be to do away with section breaks (except when a
new page layout is needed) and to use something like PageBreakBefore in the
H1 paragragh style. But this doesn't force H1 to an odd page. Do you have any
suggestions?
  #2   Report Post  
macropod
 
Posts: n/a
Default

Hi Steve,

You could possibly use a manually-inserted field that precedes each H1, to
test the page number and, if odd, add a manual page break. For example:
{IF{=MOD({PAGE},2)}= 1 {QUOTE 12}}
(the {QUOTE 12} creates a page break). Note that the filed braces (i.e.
'{ }') are created in pairs via ctrl-F9 - you can't simply type them in.

Updating all fields in the document (eg via Ctr-A then F9), will insert the
page breaks as needed.

Whether this affects your Word ML output adversely, I can't say, but the
page breaks still won't be part of the H1. If you include the field, coded
as:
{IF{=MOD({PAGE},2)}= 0 {QUOTE 12}}
as the first string in your H1 text, then it will be ...

Cheers


"SteveP" wrote in message
...
We have Word 2003 and an application that stores/rebuilds a Word document
as/from a bunch of xml topics. Each topic starts with a H1, H2, or H3
heading. We are having real problems with section breaks because these are
stored in the Word ML at the end of the previous topic, whereas we want it

to
be part of the H1 topic.

The ideal solution would be to do away with section breaks (except when a
new page layout is needed) and to use something like PageBreakBefore in

the
H1 paragragh style. But this doesn't force H1 to an odd page. Do you have

any
suggestions?



  #3   Report Post  
SteveP
 
Posts: n/a
Default

Thank you, this may well be a possible solution. I'm having trouble testing
it though because I'm getting the syntax error "Error! Unknown op code for
conditional" and I haven't yet figured out why. Any ideas?


"macropod" wrote:

Hi Steve,

You could possibly use a manually-inserted field that precedes each H1, to
test the page number and, if odd, add a manual page break. For example:
{IF{=MOD({PAGE},2)}= 1 {QUOTE 12}}
(the {QUOTE 12} creates a page break). Note that the filed braces (i.e.
'{ }') are created in pairs via ctrl-F9 - you can't simply type them in.

Updating all fields in the document (eg via Ctr-A then F9), will insert the
page breaks as needed.

Whether this affects your Word ML output adversely, I can't say, but the
page breaks still won't be part of the H1. If you include the field, coded
as:
{IF{=MOD({PAGE},2)}= 0 {QUOTE 12}}
as the first string in your H1 text, then it will be ...

Cheers


"SteveP" wrote in message
...
We have Word 2003 and an application that stores/rebuilds a Word document
as/from a bunch of xml topics. Each topic starts with a H1, H2, or H3
heading. We are having real problems with section breaks because these are
stored in the Word ML at the end of the previous topic, whereas we want it

to
be part of the H1 topic.

The ideal solution would be to do away with section breaks (except when a
new page layout is needed) and to use something like PageBreakBefore in

the
H1 paragragh style. But this doesn't force H1 to an odd page. Do you have

any
suggestions?




  #4   Report Post  
macropod
 
Posts: n/a
Default

Hi Steve,

Word is finicky about the spacing of the arguments in IF fields. You must
have the spaces indicated before and after the '='.

Cheers


"SteveP" wrote in message
...
Thank you, this may well be a possible solution. I'm having trouble

testing
it though because I'm getting the syntax error "Error! Unknown op code for
conditional" and I haven't yet figured out why. Any ideas?


"macropod" wrote:

Hi Steve,

You could possibly use a manually-inserted field that precedes each H1,

to
test the page number and, if odd, add a manual page break. For example:
{IF{=MOD({PAGE},2)}= 1 {QUOTE 12}}
(the {QUOTE 12} creates a page break). Note that the filed braces (i.e.
'{ }') are created in pairs via ctrl-F9 - you can't simply type them in.

Updating all fields in the document (eg via Ctr-A then F9), will insert

the
page breaks as needed.

Whether this affects your Word ML output adversely, I can't say, but the
page breaks still won't be part of the H1. If you include the field,

coded
as:
{IF{=MOD({PAGE},2)}= 0 {QUOTE 12}}
as the first string in your H1 text, then it will be ...

Cheers


"SteveP" wrote in message
...
We have Word 2003 and an application that stores/rebuilds a Word

document
as/from a bunch of xml topics. Each topic starts with a H1, H2, or H3
heading. We are having real problems with section breaks because these

are
stored in the Word ML at the end of the previous topic, whereas we

want it
to
be part of the H1 topic.

The ideal solution would be to do away with section breaks (except

when a
new page layout is needed) and to use something like PageBreakBefore

in
the
H1 paragragh style. But this doesn't force H1 to an odd page. Do you

have
any
suggestions?






Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Start at: page numbering not working Blaise Page Layout 3 July 9th 05 06:09 PM
Print individual page in book fold AnnetteClements Microsoft Word Help 2 July 5th 05 01:18 AM
Header & Footer not on first page but on subsequent pages KM1 Microsoft Word Help 14 June 13th 05 12:36 AM
1st page turns into "odd" when # inserted tinhorn Page Layout 12 May 19th 05 01:18 PM
Why does my page start at o" even though the top margin is set to. Normal Template Margin Problem Microsoft Word Help 1 February 19th 05 05:30 AM


All times are GMT +1. The time now is 09:29 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"