ConvertDocToDocx(String,String) Метод (OpenXmlDocumentConverter)
Преобразует документ DOC в DOCX документ.
Этот C#/VB.NET код показывает, как преобразовать DOC документ в DOCX документ.
Namespace ReferenceAPI.Vintasoft_Imaging
''' <summary>
''' Пример Programming-Codecs-How_To_Convert_Doc_To_Docx.html
''' </summary>
Public Class ConvertDocToDocxExample
'[BLOCK:ConvertDocToDocx]
''' <summary>
''' Converts DOC file to a DOCX file.
''' </summary>
Public Shared Sub ConvertDocToDocx(docFilePath As String, docxFilePath As String)
Vintasoft.Imaging.Office.OpenXml.OpenXmlDocumentConverter.ConvertDocToDocx(docFilePath, docxFilePath)
End Sub
'[ENDBLOCK]
End Class
End Namespace
namespace CSHARP.ReferenceAPI.Vintasoft_Imaging
{
/// <summary>
/// Пример Programming-Codecs-How_To_Convert_Doc_To_Docx.html
/// </summary>
public class ConvertDocToDocxExample
{
//[BLOCK:ConvertDocToDocx]
/// <summary>
/// Converts DOC file to a DOCX file.
/// </summary>
public static void ConvertDocToDocx(string docFilePath, string docxFilePath)
{
Vintasoft.Imaging.Office.OpenXml.OpenXmlDocumentConverter.ConvertDocToDocx(docFilePath, docxFilePath);
}
//[ENDBLOCK]
}
}
Целевые платформы: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5