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 -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -