Codecs: How to convert DOCX to HTML?
In This Topic
SDK can convert DOCX document to a HTML document.
Here is C#/VB.NET code that shows how to convert DOCX document to a HTML document:
/// <summary>
/// Converts DOCX file to a HTML file.
/// </summary>
/// <param name="docxFilePath">Path to a source DOC file.</param>
/// <param name="htmlFilePath">Path to a result HTML file.</param>
public static void ConvertDocxToHtml(string docxFilePath, string htmlFilePath)
{
Vintasoft.Imaging.Office.OpenXml.OpenXmlDocumentConverter.ConvertDocxToHtml(docxFilePath, htmlFilePath);
}
''' <summary>
''' Converts DOCX file to a HTML file.
''' </summary>
''' <param name="docxFilePath">Path to a source DOC file.</param>
''' <param name="htmlFilePath">Path to a result HTML file.</param>
Public Shared Sub ConvertDocxToHtml(docxFilePath As String, htmlFilePath As String)
Vintasoft.Imaging.Office.OpenXml.OpenXmlDocumentConverter.ConvertDocxToHtml(docxFilePath, htmlFilePath)
End Sub