VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.Office.OpenXml Namespace / OpenXmlDocumentConverter Class / ConvertOdtToDocx Methods / ConvertOdtToDocx(String,String) Method
Syntax Example Requirements SeeAlso
In This Topic
ConvertOdtToDocx(String,String) Method (OpenXmlDocumentConverter)
In This Topic
Converts an ODT document to a DOCX document.
Syntax
'Declaration

Public Overloads Shared Sub ConvertOdtToDocx( _
ByVal odtFilename
The filename of input ODT document.
As System.String, _
ByVal docxFilename
The filename of output DOCX document.
As System.String _
)
public static void ConvertOdtToDocx(
System.String odtFilename,
System.String docxFilename
)

Parameters

odtFilename
The filename of input ODT document.
docxFilename
The filename of output DOCX document.
Example

This C#/VB.NET code shows how to convert ODT document to a DOCX document.


''' <summary>
''' Converts ODT file to a DOCX file.
''' </summary>
''' <param name="odtFilePath">Path to a source ODT file.</param>
''' <param name="docxFilePath">Path to a result DOCX file.</param>
Public Shared Sub ConvertOdtToDocx(odtFilePath As String, docxFilePath As String)
    Vintasoft.Imaging.Office.OpenXml.OpenXmlDocumentConverter.ConvertOdtToDocx(odtFilePath, docxFilePath)
End Sub


/// <summary>
/// Converts ODT file to a DOCX file.
/// </summary>
/// <param name="odtFilePath">Path to a source ODT file.</param>
/// <param name="docxFilePath">Path to a result DOCX file.</param>
public static void ConvertOdtToDocx(string odtFilePath, string docxFilePath)
{
    Vintasoft.Imaging.Office.OpenXml.OpenXmlDocumentConverter.ConvertOdtToDocx(odtFilePath, docxFilePath);
}

Requirements

Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also