2.1.478 Part 4 Section 2.15.3.63, useWord2002TableStyleRules (Emulate Word 2002 Table Style Rules)

a.   The standard does not state exactly how to emulate Word 2002 table style rules.

In Office, this element specifies whether Word should incorrectly calculate the top border of conditional columns (as specified by a tblStylePr element (“[ECMA-376] Part 4 §2.7.5.6; tblStylePr (Style Conditional Table Formatting Properties)”) with a type attribute value of firstCol, lastCol, band1Vert, or band2Vert) under the following conditions:

A conditional formatting has also been defined for the first row (a tblStylePr element with a type attribute of firstRow)

That conditional formatting as been applied to the table using the tblLook element (“[ECMA-376] Part 4 §2.4.51; tblLook (Table Style Conditional Formatting Settings)”)

Typically, table styles are applied according to the logic defined by the Style Hierarchy (“[ECMA-376] Part 4 §2.7.2; Style Hierarchy”). This element, when present with a val attribute value of true (or equivalent), specifies that the top border of those conditionally formatted columns should instead be displayed as the top border of the following row.

[Example: Consider a WordprocessingML document with table style that defines two conditional formats:

The first column has a one point border

The first row has red shading

That style would be defined as follows:

 <w:style w:type="table" w:customStyle="1" w:styleId="TableTest">
   <w:name w:val="CompatibilitySetting"/>
   <w:tblStylePr w:type="firstRow">
     <w:tcPr>
       <w:shd w:val="clear" w:color="auto" w:fill="FF0000"/>
     </w:tcPr>
   </w:tblStylePr>
   <w:tblStylePr w:type="firstCol">
     <w:tcPr>
       <w:tcBorders>
         <w:top w:val="single" w:sz="4" w:space="0" w:color="auto"/>
         <w:left w:val="single" w:sz="4" w:space="0" w:color="auto"/>
         <w:bottom w:val="single" w:sz="4" w:space="0" w:color="auto"/>
         <w:right w:val="single" w:sz="4" w:space="0" w:color="auto"/>
       </w:tcBorders>
     </w:tcPr>
   </w:tblStylePr>
 </w:style>

If the first column and first row formatting is applied, the table would appear as follows:

Equation

However, if this compatibility setting is turned on:

 <w:compat>
   <w:useWord2002TableStyleRules />
 </w:compat>

Then the condition described by this element causes the top border defined by the conditional format for the first column to be displayed as the top border for the second column, resulting in the following output:

Equation

end example]

This note applies to the following products: 2007, 2007 SP1, 2007 SP2.

Show: