Custom style differs in two documents although style looks the same in XML

Home Forums WordprocessingML Custom style differs in two documents although style looks the same in XML

This topic contains 1 reply, has 1 voice, and was last updated by  Michaela 7 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4006

    Michaela
    Participant

    Hi there,

    I have the problem that I use a custom style in one document that I use for merging with the DocumentBuilder from the Open-Xml-PowerTools. If I merge this document to another one the styles are merged, too.
    In the new document the style in style.xml is the same as in the source document and the using of the style in document.xml seems to look the same, too.
    If I open that merged document in MS Word I have the problem that the style is different. The line spacing is different and the margin before one line is different, too.

    This is the style in style.xml:

    <w:style w:type="paragraph" w:customStyle="1" w:styleId="<Name>">
      <w:name w:val="<Name>"/>
      <w:qFormat/>
      <w:pPr>
        <w:widowControl w:val="0"/>
        <w:autoSpaceDE w:val="0"/>
        <w:autoSpaceDN w:val="0"/>
        <w:adjustRightInd w:val="0"/>
      </w:pPr>
      <w:rPr>
        <w:rFonts w:ascii="Arial" w:hAnsi="Arial" w:cs="Arial"/>
        <w:sz w:val="24"/>
        <w:szCs w:val="24"/>
      </w:rPr>
    </w:style>

    And this is the paragraph where I use this style:

    <w:p w:rsidR="00896DE0" w:rsidRDefault="00896DE0">
      <w:pPr>
        <w:pStyle w:val="<Name>"/>
        <w:rPr>
          <w:noProof/>
          <w:sz w:val="12"/>
          <w:szCs w:val="12"/>
        </w:rPr>
      </w:pPr>
    </w:p>

    Am I doing something wrong? Where do I find the linespacing and the margin that Word is showing me?

    Thanks a lot in advance,
    Michaela

    • This topic was modified 7 years, 4 months ago by  Michaela.
    #4008

    Michaela
    Participant

    I found the answer to my question:
    There are differences in the standard style which is the base of my custom style.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.