ConvertDocxToHtml(String,String) Method (OpenXmlDocumentConverter)
Converts a DOCX document to a HTML document.
This C#/VB.NET code 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 Shared Sub ConvertDocxToHtml(docxFilePath As String, htmlFilePath As String)
Vintasoft.Imaging.Office.OpenXml.OpenXmlDocumentConverter.ConvertDocxToHtml(docxFilePath, htmlFilePath)
End Sub
/// <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);
}
Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5