Hi,
I tried to underline text wit OpenXml, so I searched for ideas and I found this:
Now we can implement the simple properties like text, bold, italic and underline....public Boolean Underline { get { return RprGetElement("w:u") != null; } set { if (value) RprReplaceElement("w:u"); else RprRemoveElement("w:u");} }So, it seems, <w:u/> should do the formatting (like <w:b/> or <w:i/> does it), but it doesn't work. I used this:
Code Block
<w:p>
<w:pPr>
</w:pPr>
<w:r>
<w:rPr>
<w:u/>
</w:rPr>
<w:t xml:space="preserve">Lorem ipsum dolor sit amet, consectetuer adipiscing felis et imperdiet euismod, purus ipsum pretium metus, in lacinia </w:t>
</w:r>
</w:p>
Any idea, how to do it?