none
Differences between section break Next Page and Continuous RRS feed

  • Question

  • Hello when processing documents i am trying to understand how to tell the difference between section breaks that are continuous and section breaks that are "Next Page"

    This xml for sectPr renders as "Continuous" in word 16

         <w:sectPr w:rsidR="002B0128" w:rsidRPr="002106CC" w:rsidSect="00FA008C">
           
    <w:headerReference w:type="first" r:id="rId16"/>
           
    <w:footerReference w:type="first" r:id="rId17"/>
           
    <w:pgSz w:w="12240" w:h="15840" w:code="1"/>
           
    <w:pgMar w:top="1152" w:right="1152" w:bottom="1152" w:left="1152" w:header="720"
                w:footer="505" w:gutter="0"/>
           
    <w:pgNumType w:start="1"/>
           
    <w:cols w:space="720"/>
           
    <w:titlePg/>
           
    <w:docGrid w:linePitch="272"/>
       
    </w:sectPr>

    This xml renders as "Next Page"    

    <w:sectPr w:rsidR="002B0128" w:rsidRPr="004C2324" w:rsidSect="00A836DF">

            <w:footerReference w:type="even" r:id="rId12"/>
           
    <w:footerReference w:type="default" r:id="rId13"/>
           
    <w:headerReference w:type="first" r:id="rId14"/>
           
    <w:footerReference w:type="first" r:id="rId15"/>
           
    <w:pgSz w:w="12240" w:h="15840" w:code="1"/>
           
    <w:pgMar w:top="1080" w:right="1152" w:bottom="994" w:left="1152" w:header="446"
                w:footer="634" w:gutter="0"/>
           
    <w:pgNumType w:start="1"/>
           
    <w:cols w:space="720"/>
           
    <w:titlePg/>
       
    </w:sectPr>

    Word does not seem to consistently use the 

     <w:type w:val="continuous"/>

    child element.   I have even seen section breaks with type=continuous rendered as "Next page"

    Is there some linked data element that determines the break type?

     I found a blog post that indicated  the "type" of a section break is actually controlled by the value of the following section break element.   
    https://blogs.msmvps.com/wordmeister/2013/07/21/open-xml-sdk-cont-section-breaks/

    tests on editing the xml show this to be true.

    can anyone explain the thinking behind this? 

    • Edited by pete-fc Tuesday, September 17, 2019 10:42 PM
    Tuesday, September 17, 2019 10:15 PM