I am evaluating Aspose Word and have run into the following problem: When I use the InsertHtml method in DocumentBuilder, the font color is sometimes lost. The HTML was created from a Word document. I have attached the document file that the HTML is added to.
public void InsertHTMLAtEnd(string fileName, string html, string outFileName)
FileStream inStream = File.OpenRead(fileName);
FileStream outStream = File.OpenWrite(outFileName);
Word word = new Word();
Document doc = word.Open(inStream);
DocumentBuilder builder = new DocumentBuilder(doc);
if(inStream != null)
if(outStream != null)
This is an HTML file with some formatting
This is an HTML file with some formatting.
style='color:#99CC00'>This is italic and green.
style='color:red'>This is bold and red.
This is underlined and blue.
This is BIG