This project has moved. For the latest updates, please go here.

Hide Link Underline

Aug 5, 2012 at 4:18 AM
Edited Aug 5, 2012 at 9:47 AM

Hi,

Is there a way to hide link underlines?

Thanks a lot,

Aug 5, 2012 at 6:50 AM
Edited Aug 5, 2012 at 7:38 AM

<deleted>

Coordinator
Aug 9, 2012 at 10:17 AM

To reply to your first question: "how do I set font's family ?"

This was a design feature to exclude font family and font style. But more and more users claim for that feature so good news: I'm already working on it :)

For your second question about link underline, nothing is handled by Html2OpenXml. So your better option is create/alter the style named "Hyperlink" in the StyleDefinitionPart

Style style = mainPart.StyleDefinitionsPart.Styles.Elements<Style>()
                      .Where(s => s.StyleId.Value == "Hyperlink").FirstOrDefault();
if (style != null)
   style.StyleRunProperties.Underline.Val = UnderlineValues.None;

Aug 9, 2012 at 4:21 PM

Thank you