ms word - DOCX openxml default character style -


i take new docx document single run , try add

<w:style w:type="character" w:default="1" w:styleid="qqq">    <w:rpr>       <w:b/>    </w:rpr> </w:style> 

into word/styles.xml/w:styles. expect see text inside run bold, don't. run has no references other styles. if change w:type "paragraph", run becomes bold. ecma-376, seems style type='character' should affect runs. if doesn't, purpose of w:type="character"?

thanx

its fair question.

you can affect runs modifying w:docdefaults/w:docdefaults:

<w:styles  xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">   <w:docdefaults>     <w:rprdefault>       <w:rpr> 

Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -