none
WordProcessingML Table style RRS feed

  • Question

  •  

    Hi, I have following problem. I created a Table in my document and I wanted to style it in the styles.xml, but there is one problem I can't understand.

     

    I want only to change the align to right for the last Column in the Table, but if I do it with

    Code Snippet

    <w:tblStylePr w:type="lastColumn">

    <w:pPr>

    <w:jc w:val="right"/>

    </w:pPr>

     

     

    it will be ignored. If I am trying the same for the firstRow it works fine. What's the problem? Do somebody knows what I am doing wrong?

     

    If you know it, please answer. Thank you.

     

    hebold

     

    My styling for the table I created:

     

    Code Snippet

    <w:style w:type="table" w:styleID="Table">

    <w:name w:val="Table"/>

    <w:qFormat/>

    <w:pPr>

    <w:spacing w:after="0" w:line="240" w:lineRule="auto"/>

    </w:pPr>

    <w:rPr>

    <w:rFonts w:ascii="Arial"/>

    <w:sz w:val="16"/>

    </w:rPr>

    <w:tblPr>

    <w:tblBorders>

    <w:top w:val="single" w:sz="2"/>

    <w:bottom w:val="single" w:sz="2"/>

    <w:insideH w:val="single" w:sz="2"/>

    </w:tblBorders>

    </w:tblPr>

    <w:tblStylePr w:type="lastColumn">

    <w:pPr>

    <w:jc w:val="right"/>

    </w:pPr>

    </w:tblStylePr>

    </w:style>

     

     

    Wednesday, June 11, 2008 11:01 AM

All replies

  • It value for w:type should be "lastCol" per the document.
     

    Code Snippet

    <w:tblStylePr w:type="lastCol">

    <w:pPr>

    <w:jc w:val="right"/>

    </w:pPr>

     

     

    The possible values for this attribute are defined by the ST_TblStyleOverrideType simple type.

    ST_TblStyleOverrideType
    <simpleType name="ST_TblStyleOverrideType">
      <restriction base="xsd:string">
        <enumeration value="wholeTable"/>
        <enumeration value="firstRow"/>
        <enumeration value="lastRow"/>
        <enumeration value="firstCol"/>
        <enumeration value="lastCol"/>
        <enumeration value="band1Vert"/>
        <enumeration value="band2Vert"/>
        <enumeration value="band1Horz"/>
        <enumeration value="band2Horz"/>
        <enumeration value="neCell"/>
        <enumeration value="nwCell"/>
        <enumeration value="seCell"/>
        <enumeration value="swCell"/>
      </restriction>
    </simpleType>

     

     


    Friday, June 13, 2008 9:59 AM