Why are columns not balancing?

D

David Thielen

Hi;

It is definitely a run of very weird formatting questions coming in from our
customers right now...

We think the way Word works is that newspaper columns are balanced at the
end of them if there is a section break after the columns. And that they are
unbalanced (complete column 0 before putting anything in column 1) if the
documents ends.

And that holds for every document except the one at
http://www.windwardreports.com/temp/columns.zip - why does that one have an
unbalanced column?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
J

Jialiang Ge [MSFT]

Hello Dave,

Sorry for making your misunderstand my meaning. I should have said more
about the continuous break in my last reply.

Adding a continuous break means to insert a section break and start the new
section on the same page. To make it clearer, let's first have a look at
what we should do to make a balanced columns in Word:

In Word 2007 (this demo also works for Word 2003 and the previous), we
create a new document and type some text, e.g. "aaaaaaaaaaaaaaaaaaaaaaa".
Then we select the paragraph, go to Page Layout ribbon->Columns button, and
select "Two". At this moment, Word shows two columns and all the text is on
the left side. The text is unbalanced, because Word cannot determine the
end of the section. To make it balanced, we click on the end of the
paragraph, insert a continuous break by going to Page Layout ribbon
->Breaks->Continuous. Now, Word can see the section end, and is able to
decide how to balance the text into two columns.

If you have understood the use of the "Continuous" break by following the
above demo, let's see what should be done in the WordXML:

<w:type w:val="continuous"/> should be inserted to the end of the section
of columns. Thus it should be like this:

<wx:sect><w:proofErr w:type="gramStart"/><w:p wsp:rsidR="00FA4FFA"
wsp:rsidRDefault="00BC3BB2"><w:pPr><w:sectPr wsp:rsidR="00FA4FFA"
wsp:rsidSect="00FA4FFA"><w:pgSz w:w="11906" w:h="16838"/><w:pgMar
w:top="1440" w:right="1800" w:bottom="1440" w:left="1800" w:header="851"
w:footer="992" w:gutter="0"/><w:cols w:num="2" w:space="425"/><w:docGrid
w:type="lines" w:line-pitch="312"/></w:sectPr></w:pPr><w:r><w:rPr><w:rFonts
w:hint="fareast"/></w:rPr><w:t>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</w:t></w:r><w:pr
oofErr w:type="gramEnd"/></w:p></wx:sect>

<wx:sect><w:p wsp:rsidR="00736E37"
wsp:rsidRDefault="00736E37"><w:pPr><w:rPr><w:rFonts
w:hint="fareast"/></w:rPr></w:pPr></w:p><w:sectPr wsp:rsidR="00736E37"
wsp:rsidSect="00FA4FFA"><w:type w:val="continuous"/><w:pgSz w:w="11906"
w:h="16838"/><w:pgMar w:top="1440" w:right="1800" w:bottom="1440"
w:left="1800" w:header="851" w:footer="992" w:gutter="0"/><w:cols
w:space="425"/><w:docGrid w:type="lines"
w:line-pitch="312"/></w:sectPr></wx:sect>

The first section is for the columns, and the second section, whose type is
"continuous", is used to tell Word how to balance the text in columns.

Is it clearer now?

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================
 
J

Jialiang Ge [MSFT]

Hello Dave,

You are right. The non-balance in your xml is not due to the continuous
break. After comparing your xml with mine for hours, I think I've found out
the reason:

In your example xml, there is an element "w:noColumnBalance" defined in
w:wordDocument/w:docPr/w:compat. The element "noColumnBalance" is described
in wordxml spec part 4, $2.15.3.33, page 1429. As long as we remove this
element, the columns are balanced. Please have a try and let me know the
result.

I think this post is a very good lesson for me. I should have read the spec
and done the researches more carefully and consulted the word team before I
rushed to the conclusions in the initial reply. Sorry to have kept you
waiting.

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top