Menu
  • HOME
  • TAGS

Microsoft Word how to change background color with DocX

c#,office-interop,novacode-docx

Looking at the DocX source code of the Formatting in class I would say that you're looking for Highlight. So if you wanted something highlighted in blue rb.Highlight = Highlight.blue; Edit: This seems to have been already answered in this question http://stackoverflow.com/a/30141775/2039359...

.Doc file is not creating properly in asp.net coming with html tags

c#,asp.net,novacode-docx

If it is all the text inside the div you want, then you could do this. ASP.NET <div runat="server" id="design" style="width:600px"> SOME TEXT <span> text </span> </div> C#: string allTextInsideDiv = design.InnerText; //You should get "SOME TEXT text" Edited: In further to our discussion you could not get InnerText as...

Create document using docx library with HTML text

c#,novacode-docx

You have to convert it to xml element. Try DocumentFormat.OpenXml library