Кодеки: Как преобразовать DOCX в HTML?
В этом разделе
SDK может преобразовать DOCX-документ в документ HTML.
Вот код C#/VB.NET, который показывает, как преобразовать DOCX-документ в документ HTML:
/// <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