Below code can help you convert word to html with C# via a Word Component with two lines of key code:
C#
using Spire.Doc;
using Spire.Doc.Documents;
private void button1_Click(object sender, EventArgs e)
{
//Create word document
Document document = new Document();
document.LoadFromFile(@"..\..\..\..\..\..\Data\FindAndReplace.doc");
//Save doc files
document.SaveToFile("Sample.html", FileFormat.Html);
//Launching the MS Word file.
WordDocViewer("Sample.html");
}
private void WordDocViewer(string fileName)
{
try
{
System.Diagnostics.Process.Start(fileName);
}
catch { }
}