Codecs: How to convert ODT to DOCX?
In This Topic
SDK can convert ODT document to a DOCX document.
Here is C#/VB.NET code that 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 static void ConvertOdtToDocx(string odtFilePath, string docxFilePath)
{
Vintasoft.Imaging.Office.OpenXml.OpenXmlDocumentConverter.ConvertOdtToDocx(odtFilePath, docxFilePath);
}
''' <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