VintaSoft Imaging .NET SDK 11.0
In This Topic
    Codecs: How to convert DOC to DOCX?
    In This Topic

    SDK can convert DOC document to a DOCX document.

    Here is an example that shows how to convert DOC document to a DOCX document:

    ' The project, which uses this code, must have references to the following assemblies:
    ' - Vintasoft.Imaging
    ' - Vintasoft.Imaging.Office.OpenXml
    
    ''' <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
    
    // The project, which uses this code, must have references to the following assemblies:
    // - Vintasoft.Imaging
    // - Vintasoft.Imaging.Office.OpenXml
    
    /// <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);
    }